From fa6f113dde7d79ce9efd9426e40d3568c17bafbb Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Tue, 16 Apr 2024 11:42:45 +0800 Subject: [PATCH] refactor: use css token replace 4px (#48474) --- components/card/style/index.ts | 2 +- components/date-picker/style/panel.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/card/style/index.ts b/components/card/style/index.ts index bc96d2b592..9a7ae63808 100644 --- a/components/card/style/index.ts +++ b/components/card/style/index.ts @@ -307,7 +307,7 @@ const genCardStyle: GenerateStyle = (token): CSSObject => { [`${componentCls}-body`]: { padding: cardPaddingBase, - borderRadius: ` 0 0 ${unit(token.borderRadiusLG)} ${unit(token.borderRadiusLG)}`, + borderRadius: `0 0 ${unit(token.borderRadiusLG)} ${unit(token.borderRadiusLG)}`, ...clearFix(), }, diff --git a/components/date-picker/style/panel.ts b/components/date-picker/style/panel.ts index dd14df393e..fc3188562a 100644 --- a/components/date-picker/style/panel.ts +++ b/components/date-picker/style/panel.ts @@ -562,7 +562,7 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => { '&::-webkit-scrollbar-thumb': { backgroundColor: token.colorTextTertiary, - borderRadius: 4, + borderRadius: token.borderRadiusSM, }, // For Firefox