Skip to content

Commit

Permalink
fix: Applying correct styles to icon when ToggleButton is checked and…
Browse files Browse the repository at this point in the history
… has a subtle or transparent appearance (#30775)
  • Loading branch information
khmakoto committed Mar 13, 2024
1 parent 0e4c8b7 commit 9865fa9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: Applying correct styles to icon when ToggleButton is checked and has a subtle or transparent appearance.",
"packageName": "@fluentui/react-button",
"email": "Humberto.Morimoto@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,8 @@ export const useToggleButtonStyles_unstable = (state: ToggleButtonState): Toggle
if (state.icon) {
state.icon.className = mergeClasses(
toggleButtonClassNames.icon,
(appearance === 'subtle' || appearance === 'transparent') &&
iconCheckedStyles.subtleOrTransparent &&
iconCheckedStyles.highContrast,
(appearance === 'subtle' || appearance === 'transparent') && iconCheckedStyles.subtleOrTransparent,
iconCheckedStyles.highContrast,
state.icon.className,
);
}
Expand Down

0 comments on commit 9865fa9

Please sign in to comment.