Skip to content

Commit

Permalink
fix(Button): fix fontSizeSM token not working (ant-design#44217)
Browse files Browse the repository at this point in the history
Co-authored-by: Grant Chan <grantchan@metaarchit.com>
  • Loading branch information
CHENGTIANG and Grant Chan authored Aug 16, 2023
1 parent b9f77fd commit 947ea38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/button/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ const genSizeBaseButtonStyle: GenerateStyle<ButtonToken> = (token) => genSizeBut
const genSizeSmallButtonStyle: GenerateStyle<ButtonToken> = (token) => {
const smallToken = mergeToken<ButtonToken>(token, {
controlHeight: token.controlHeightSM,
fontSize: token.fontSizeSM,
padding: token.paddingXS,
buttonPaddingHorizontal: token.paddingInlineSM, // Fixed padding
borderRadius: token.borderRadiusSM,
Expand Down Expand Up @@ -694,5 +695,6 @@ export default genComponentStyleHook(
defaultBg: token.colorBgContainer,
defaultBorderColor: token.colorBorder,
defaultBorderColorDisabled: token.colorBorder,
fontSizeSM: token.fontSize,
}),
);

0 comments on commit 947ea38

Please sign in to comment.