From f0a60f8008cea4cf792dad52cbc92f5a423dae0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=91=E9=9B=A8?= Date: Tue, 27 Dec 2022 15:26:31 +0800 Subject: [PATCH] fix: fix input style --- components/date-picker/style/index.tsx | 1 + components/input/style/index.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/components/date-picker/style/index.tsx b/components/date-picker/style/index.tsx index b8a0fe0e34de..87a4f7873485 100644 --- a/components/date-picker/style/index.tsx +++ b/components/date-picker/style/index.tsx @@ -969,6 +969,7 @@ const genPickerStyle: GenerateStyle = (token) => { display: 'inline-flex', alignItems: 'center', background: colorBgContainer, + lineHeight: 1, border: `${lineWidth}px ${lineType} ${colorBorder}`, borderRadius, transition: `border ${motionDurationMid}, box-shadow ${motionDurationMid}`, diff --git a/components/input/style/index.tsx b/components/input/style/index.tsx index 8b922b0b4f4e..03cfd70a8602 100644 --- a/components/input/style/index.tsx +++ b/components/input/style/index.tsx @@ -274,6 +274,7 @@ export const genInputGroupStyle = (token: InputToken): CSSObject => { border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`, borderRadius: token.borderRadius, transition: `all ${token.motionDurationSlow}`, + lineHeight: 1, // Reset Select's style in addon [`${antCls}-select`]: {