Skip to content

Commit

Permalink
fix(badge): text not centered
Browse files Browse the repository at this point in the history
  • Loading branch information
akinoccc committed Apr 24, 2024
1 parent 11a160c commit 6ec16c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/badge/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ const genSharedBadgeStyle: GenerateStyle<BadgeToken> = (token) => {
lineHeight: 1,

[`${componentCls}-count`]: {
display: 'inline-flex',
justifyContent: 'center',
zIndex: token.indicatorZIndex,
minWidth: indicatorHeight,
height: indicatorHeight,
Expand All @@ -144,7 +146,6 @@ const genSharedBadgeStyle: GenerateStyle<BadgeToken> = (token) => {
fontSize: textFontSize,
lineHeight: unit(indicatorHeight),
whiteSpace: 'nowrap',
textAlign: 'center',
background: token.badgeColor,
borderRadius: calc(indicatorHeight).div(2).equal(),
boxShadow: `0 0 0 ${unit(badgeShadowSize)} ${token.badgeShadowColor}`,
Expand Down

0 comments on commit 6ec16c1

Please sign in to comment.