From fec2f49bef9d8221e712b6b164228fef3b7371ba Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 10 Jan 2023 22:10:18 +0800 Subject: [PATCH] style: fix Badge rtl style on block element (#40125) --- components/badge/style/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/badge/style/index.ts b/components/badge/style/index.ts index 131da83c4c..9f936b93f2 100644 --- a/components/badge/style/index.ts +++ b/components/badge/style/index.ts @@ -253,7 +253,6 @@ const genSharedBadgeStyle: GenerateStyle = (token: BadgeToken): CSSO }, [`${numberPrefixCls}`]: { overflow: 'hidden', - direction: 'ltr', [`${numberPrefixCls}-only`]: { position: 'relative', display: 'inline-block', @@ -276,7 +275,7 @@ const genSharedBadgeStyle: GenerateStyle = (token: BadgeToken): CSSO direction: 'rtl', [`${componentCls}-count, ${componentCls}-dot, ${numberPrefixCls}-custom-component`]: { - insetInlineEnd: 'auto', + transform: 'translate(-50%, -50%)', }, }, },