Skip to content

Commit 61d6bbe

Browse files
authored
fix(react-button): make SplitButton divider match Figma spec (#33726)
1 parent 1ae2f93 commit 61d6bbe

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix: make SplitButton divider transparent for subtle and transparent variants",
4+
"packageName": "@fluentui/react-button",
5+
"email": "vgenaev@gmail.com",
6+
"dependentChangeType": "patch"
7+
}

packages/react-components/react-button/library/src/components/SplitButton/useSplitButtonStyles.styles.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,35 +92,35 @@ const useRootStyles = makeStyles({
9292
},
9393
subtle: {
9494
[`& .${splitButtonClassNames.primaryActionButton}`]: {
95-
borderRightColor: tokens.colorNeutralStroke1,
95+
borderRightColor: tokens.colorTransparentBackground,
9696
},
9797

9898
':hover': {
9999
[`& .${splitButtonClassNames.primaryActionButton}`]: {
100-
borderRightColor: tokens.colorNeutralStroke1Hover,
100+
borderRightColor: tokens.colorTransparentBackgroundHover,
101101
},
102102
},
103103

104104
':hover:active': {
105105
[`& .${splitButtonClassNames.primaryActionButton}`]: {
106-
borderRightColor: tokens.colorNeutralStroke1Pressed,
106+
borderRightColor: tokens.colorTransparentBackgroundPressed,
107107
},
108108
},
109109
},
110110
transparent: {
111111
[`& .${splitButtonClassNames.primaryActionButton}`]: {
112-
borderRightColor: tokens.colorNeutralStroke1,
112+
borderRightColor: tokens.colorTransparentBackground,
113113
},
114114

115115
':hover': {
116116
[`& .${splitButtonClassNames.primaryActionButton}`]: {
117-
borderRightColor: tokens.colorNeutralStroke1Hover,
117+
borderRightColor: tokens.colorTransparentBackgroundHover,
118118
},
119119
},
120120

121121
':hover:active': {
122122
[`& .${splitButtonClassNames.primaryActionButton}`]: {
123-
borderRightColor: tokens.colorNeutralStroke1Pressed,
123+
borderRightColor: tokens.colorTransparentBackgroundPressed,
124124
},
125125
},
126126
},

0 commit comments

Comments
 (0)