Skip to content

Commit 5cf70b3

Browse files
authored
fix(react-tabs): fix circular tab sizes according to Figma spec (#34859)
1 parent 61c6eaf commit 5cf70b3

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
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: adjust circular sizes to Figma spec",
4+
"packageName": "@fluentui/react-tabs",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/react-components/react-tabs/library/src/components/Tab/useTabStyles.styles.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,14 @@ const useCircularAppearanceStyles = makeStyles({
186186
color: 'inherit',
187187
},
188188
},
189+
small: {
190+
paddingBlock: `calc(${tokens.spacingVerticalXXS} - ${tokens.strokeWidthThin})`,
191+
},
189192
medium: {
190-
paddingBlock: `${tokens.spacingVerticalSNudge}`,
193+
paddingBlock: `calc(${tokens.spacingVerticalSNudge} - ${tokens.strokeWidthThin})`,
194+
},
195+
large: {
196+
paddingBlock: `calc(${tokens.spacingVerticalS} - ${tokens.strokeWidthThin})`,
191197
},
192198
subtle: {
193199
backgroundColor: tokens.colorSubtleBackground,
@@ -680,7 +686,9 @@ export const useTabButtonStyles_unstable = (state: TabState, slot: TabState['roo
680686
circularStyles.base,
681687
focusStyles.circular,
682688
// sizes
689+
size === 'small' && circularStyles.small,
683690
size === 'medium' && circularStyles.medium,
691+
size === 'large' && circularStyles.large,
684692
// subtle-circular appearance
685693
isSubtleCircular && circularStyles.subtle,
686694
selected && isSubtleCircular && circularStyles.subtleSelected,

0 commit comments

Comments
 (0)