Fix disabled primary button text color (#8796)
This commit is contained in:
@@ -592,7 +592,13 @@ export function useSharedButtonTextStyles() {
|
|||||||
if (!disabled) {
|
if (!disabled) {
|
||||||
baseStyles.push({color: t.palette.white})
|
baseStyles.push({color: t.palette.white})
|
||||||
} else {
|
} 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') {
|
} else if (color === 'secondary') {
|
||||||
if (!disabled) {
|
if (!disabled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user