Browse Source

style: fix Badge rtl style on block element (#40125)

pull/40149/head
afc163 2 years ago
committed by GitHub
parent
commit
fec2f49bef
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      components/badge/style/index.ts

3
components/badge/style/index.ts

@ -253,7 +253,6 @@ const genSharedBadgeStyle: GenerateStyle<BadgeToken> = (token: BadgeToken): CSSO
}, },
[`${numberPrefixCls}`]: { [`${numberPrefixCls}`]: {
overflow: 'hidden', overflow: 'hidden',
direction: 'ltr',
[`${numberPrefixCls}-only`]: { [`${numberPrefixCls}-only`]: {
position: 'relative', position: 'relative',
display: 'inline-block', display: 'inline-block',
@ -276,7 +275,7 @@ const genSharedBadgeStyle: GenerateStyle<BadgeToken> = (token: BadgeToken): CSSO
direction: 'rtl', direction: 'rtl',
[`${componentCls}-count, ${componentCls}-dot, ${numberPrefixCls}-custom-component`]: { [`${componentCls}-count, ${componentCls}-dot, ${numberPrefixCls}-custom-component`]: {
insetInlineEnd: 'auto', transform: 'translate(-50%, -50%)',
}, },
}, },
}, },

Loading…
Cancel
Save