Skip to content

Commit c7567a0

Browse files
committed
fixes visual regression
1 parent e2749b0 commit c7567a0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/SegmentedControl/SegmentedControl.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const getSegmentedControlStyles = (isFullWidth?: boolean) => ({
3333
borderStyle: 'solid',
3434
borderWidth: 1,
3535
display: isFullWidth ? 'flex' : 'inline-flex',
36+
height: '32px', // TODO: use primitive `control.medium.size` when it is available
3637
margin: 0,
3738
padding: 0,
3839
width: isFullWidth ? '100%' : undefined

src/SegmentedControl/__snapshots__/SegmentedControl.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ exports[`SegmentedControl renders consistently 1`] = `
286286
display: -webkit-inline-flex;
287287
display: -ms-inline-flexbox;
288288
display: inline-flex;
289+
height: 32px;
289290
margin: 0;
290291
padding: 0;
291292
}

0 commit comments

Comments
 (0)