diff options
author | Eric Bailey <git@esb.lol> | 2025-08-07 16:44:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-07 16:44:19 -0500 |
commit | 88856b0ff7253ea9fc395efbd70fe6602024bb4f (patch) | |
tree | 4a23c34e0238f2193343f0a9e9b9012c131c287d | |
parent | 08a83242906431acb06dde79467ec7dfdefa49f8 (diff) | |
download | voidsky-88856b0ff7253ea9fc395efbd70fe6602024bb4f.tar.zst |
Fix disabled primary button text color (#8796)
-rw-r--r-- | src/components/Button.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 7904f5122..d7bd9a208 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -592,7 +592,13 @@ export function useSharedButtonTextStyles() { if (!disabled) { baseStyles.push({color: t.palette.white}) } else { - baseStyles.push({color: t.palette.white}) + baseStyles.push({ + color: select(t.name, { + light: t.palette.white, + dim: t.atoms.text_inverted.color, + dark: t.atoms.text_inverted.color, + }), + }) } } else if (color === 'secondary') { if (!disabled) { |