Skip to content

Commit

Permalink
try no calc
Browse files Browse the repository at this point in the history
  • Loading branch information
langermank committed Sep 13, 2024
1 parent 0a8c4ce commit 91e7541
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/Button/ButtonBase.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
}

& .Label {
line-height: calc(20 / 14); /* temporary until we use Text component with --text-body-lineHeight-medium */
line-height: 1.42857; /* temporary until we use Text component with --text-body-lineHeight-medium */
white-space: nowrap;
grid-area: text;
}
Expand Down Expand Up @@ -156,7 +156,7 @@
}

& .Label {
line-height: calc(20 / 12); /* temporary until we use Text component with --text-body-lineHeight-small */
line-height: 1.66667; /* temporary until we use Text component with --text-body-lineHeight-small */
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/Button/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export const getBaseStyles = (theme?: Theme) => ({
fontSize: '0',

'[data-component="text"]': {
lineHeight: 'calc(20 / 12)',
lineHeight: '1.66667',
},

'[data-component=ButtonCounter]': {
Expand Down Expand Up @@ -385,7 +385,7 @@ export const getButtonStyles = (theme?: Theme) => {
},
'[data-component="text"]': {
gridArea: 'text',
lineHeight: 'calc(20/14)',
lineHeight: '1.42857',
whiteSpace: 'nowrap',
},
'[data-component="trailingVisual"]': {
Expand Down

0 comments on commit 91e7541

Please sign in to comment.