Repository navigation
fix(ui-core): keep the loading look on a disabled loading Button - #38176
Merged
Merged
Conversation
Callers pass isDisabled={loading} with isLoading, so the disabled palette
painted over the loading fill; in dark mode the Sign In label dropped to
~2.5:1 contrast. Gate every disabled style on not-data-loading. Native
disabled stays, so behaviour is unchanged.
Code Review ✅ Approved 🟡 Medium riskGating disabled styles during loading changes the shared Button’s appearance across variants; unintended styling differences could affect loading states throughout the UI. Gates core VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
shrabantipaul-collate
approved these changes
Nov 19, 2026
Merged
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes:
In dark mode the Sign In button became unreadable after clicking it.
Root cause:
SignInPage(and ~30 other call sites: Sign Up, Forgot Password, delete modals, SSO form, …) passesisDisabled={loading}together withisLoading. The coreButton'sdisabled:styles then painted the disabled palette over the loading state — in dark modetext-fg-disabled(#7b7f86) onbg-disabled(#373a41), ~2.5:1 contrast.Fix: in
openmetadata-ui-core-componentsbutton.tsx, everydisabled:style is now gated with Tailwind'snot-data-loading:variant (compiles to:disabled:not([data-loading])). A loading button keeps its colour's existingdata-loadingfill, white label and spinner. The nativedisabledattribute is untouched, so behaviour (press/submit blocking,toBeDisabledassertions) does not change.Collate has no sign-in page of its own — it renders the OSS
SignInPageand coreButtonthrough the OSS submodule, so it picks this up on the next submodule bump.Note: in light mode, buttons that are disabled and loading now also show the brand loading fill instead of grey — the loading look the core Button already defines.
Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
ButtonwithisDisabled+isLoadingkeeps its loading colours; plain disabled buttons are unchanged.Unit tests
button.test.tsx: new test asserting a disabled+loading button stays natively disabled, carriesdata-loading, and has no ungateddisabled:class. Fails onmain, passes here.vitest run src/components/base/buttons/→ 87 passed.Backend integration tests
Playwright
Other checks
make ui-checkstyle-changedclean; prettier + eslint clean on changed files.tw:disabled:not-data-loading:*verified with@tailwindcss/node.Screenshots
Sign In clicked (login request held open so the button stays loading). Captured on the Vite dev server with the auth config mocked.
main(before)Computed label colour while loading: dark
#7b7f86→#ffffffon#2e90fa; light#a4a7ae→#ffffffon#175cd3.🤖 Generated with Claude Code


Confidence Score: 5/5
This PR appears safe to merge.Summary
Loading buttons keep their existing loading colors when callers also disable them.
No actionable issues found. Tests were not run during this review.
Reviews (9) · Last reviewed commit: "fix(ui-core): keep the loading look on a..." · Reviewed by Greptile