From 343099a083cbb5e388d8c78f796ba637460ac1d0 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 15 Nov 2024 16:39:02 +0800 Subject: [PATCH] fix: Button custom icon is not align center --- components/button/style/index.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/button/style/index.ts b/components/button/style/index.ts index 7613a72488..9b44062b9b 100644 --- a/components/button/style/index.ts +++ b/components/button/style/index.ts @@ -38,12 +38,8 @@ const genSharedButtonStyle: GenerateStyle = (token): CSS pointerEvents: 'none', }, - '> span': { - display: 'inline-block', - }, - - [`${componentCls}-icon`]: { - lineHeight: 1, + [`> span, ${componentCls}-icon`]: { + display: 'inline-flex', }, '> a': {