Skip to content

Commit

Permalink
Fix tab subtle background (#22346)
Browse files Browse the repository at this point in the history
* Set subtle tab background to subtle background tokens

* yarn change
  • Loading branch information
GeoffCoxMSFT authored Apr 8, 2022
1 parent 5e54cca commit 69bcdf2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Set subtle tab background to subtle background tokens",
"packageName": "@fluentui/react-tabs",
"email": "[email protected]",
"dependentChangeType": "patch"
}
6 changes: 5 additions & 1 deletion packages/react-tabs/src/components/Tab/useTabStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,12 @@ const useRootStyles = makeStyles({
},
},
subtle: {
backgroundColor: tokens.colorSubtleBackground,
':hover': {
backgroundColor: tokens.colorNeutralBackground1Hover,
backgroundColor: tokens.colorSubtleBackgroundHover,
},
':active': {
backgroundColor: tokens.colorTransparentBackgroundPressed,
},
},
disabled: {
Expand Down

0 comments on commit 69bcdf2

Please sign in to comment.