Skip to content

Commit

Permalink
fix: height of segmentedcontrol (#929)
Browse files Browse the repository at this point in the history
The height of the SegmentedControl is not consistent with other elements.
It should align with other components such as buttons, and form elements.

Closes D2IQ-95243
  • Loading branch information
nataliepina authored Feb 21, 2023
1 parent d65b947 commit 381119a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/segmentedControl/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const segmentedControlButton = css`

export const segmentedControlButtonInner = css`
padding: ${buttonPadding.vert} ${buttonPadding.horiz};
line-height: normal;
`;

export const segmentedControlButtonActive = css`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ exports[`SegmentedControl renders default 1`] = `
.emotion-3 {
padding: 10px 18px;
line-height: normal;
}
<div
Expand Down Expand Up @@ -188,6 +189,7 @@ exports[`SegmentedControl renders with selected 1`] = `
.emotion-3 {
padding: 10px 18px;
line-height: normal;
}
.emotion-4 {
Expand Down

0 comments on commit 381119a

Please sign in to comment.