Skip to content

Commit da62e83

Browse files
authored
fix: Button sets correct disabledFocusable icon color in forced-colors mode (#33756)
1 parent 4239291 commit da62e83

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix: Button sets correct disabledFocusable icon color",
4+
"packageName": "@fluentui/react-button",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

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)