Skip to content

Commit dcb1bc3

Browse files
matthprostlisalupi
authored andcommitted
fix(Button): wrong sizes (#5452)
1 parent 7fd344f commit dcb1bc3

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

packages/ui/src/components/Button/styles.css.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ function getGhostStyle(sentiment: (typeof sentiments)[number]) {
213213
}
214214

215215
const sharedSizeStyled = {
216-
fontSize: theme.typography.bodyStrong.fontSize,
217-
fontFamily: theme.typography.bodyStrong.fontFamily,
218-
fontWeight: theme.typography.bodyStrong.weight,
219-
letterSpacing: theme.typography.bodyStrong.letterSpacing,
220-
lineHeight: theme.typography.bodyStrong.lineHeight,
216+
fontSize: theme.typography.bodySmallStrong.fontSize,
217+
fontFamily: theme.typography.bodySmallStrong.fontFamily,
218+
fontWeight: theme.typography.bodySmallStrong.weight,
219+
letterSpacing: theme.typography.bodySmallStrong.letterSpacing,
220+
lineHeight: theme.typography.bodySmallStrong.lineHeight,
221221
}
222222

223223
export const button = recipe({
@@ -245,7 +245,11 @@ export const button = recipe({
245245
paddingLeft: theme.space[SIZE_PADDING_KEY.large],
246246
paddingRight: theme.space[SIZE_PADDING_KEY.large],
247247
gap: theme.space[SIZE_GAP_KEY.large],
248-
...sharedSizeStyled,
248+
fontSize: theme.typography.bodyStrong.fontSize,
249+
fontFamily: theme.typography.bodyStrong.fontFamily,
250+
fontWeight: theme.typography.bodyStrong.weight,
251+
letterSpacing: theme.typography.bodyStrong.letterSpacing,
252+
lineHeight: theme.typography.bodyStrong.lineHeight,
249253
},
250254
medium: {
251255
height: theme.sizing[SIZE_HEIGHT.medium],

0 commit comments

Comments
 (0)