You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ui): 4 filled Buttons hand-roll a loading state with an uncolored nested Text #471
Found while fixing #444, which fixed the two reported black-on-black buttons.
I swept for the same defect shape rather than assuming there were only two. 65 call sites nest <Text>/<Row> inside a <Button>. Only 6 sit on a filled background, and 2 of those already hardcode #ffffff. The remaining 4 are all the same pattern — a hand-rolled loading state on variant="filled" color="primary" whose nested <Text> carries no color, so it renders colors.text[theme].primary on colors.primary[600]:
Lower severity than the reported bug — poor contrast in a transient loading state, not black-on-black — which is why I did not fold a refactor of four unrelated profile forms into #444.
Fix: use Button's own loading prop, which exists for exactly this and is what its docblock recommends ("Loading state (use the prop, not a Spinner in children)"):
<Buttonvariant="filled"color="primary"loading={isLoading}...>
Save Changes
</Button>
That removes the nested <Text> entirely, so Button colors its own label and the spinner picks up resolvedIconColor.
Activity