Skip to content

Commit 1de01af

Browse files
committed
fix: Button sets correct disabledFocusable icon color
1 parent ace3f40 commit 1de01af

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: packages/react-components/react-button/library/src/components/Button/useButtonStyles.styles.ts

+12
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@ const useRootDisabledStyles = makeStyles({
373373
...shorthands.borderColor('GrayText'),
374374
color: 'GrayText',
375375

376+
[`& .${buttonClassNames.icon}`]: {
377+
color: 'GrayText',
378+
},
379+
376380
':focus': {
377381
...shorthands.borderColor('GrayText'),
378382
},
@@ -381,12 +385,20 @@ const useRootDisabledStyles = makeStyles({
381385
backgroundColor: 'ButtonFace',
382386
...shorthands.borderColor('GrayText'),
383387
color: 'GrayText',
388+
389+
[`& .${buttonClassNames.icon}`]: {
390+
color: 'GrayText',
391+
},
384392
},
385393

386394
':hover:active': {
387395
backgroundColor: 'ButtonFace',
388396
...shorthands.borderColor('GrayText'),
389397
color: 'GrayText',
398+
399+
[`& .${buttonClassNames.icon}`]: {
400+
color: 'GrayText',
401+
},
390402
},
391403
},
392404
},

0 commit comments

Comments
 (0)