From 3a03c7abde87b393113d21b5ac983d9b9a71b995 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Tue, 27 Dec 2022 10:29:51 +0800 Subject: [PATCH] fix: menu slide bar style (#39819) --- components/menu/style/theme.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/menu/style/theme.tsx b/components/menu/style/theme.tsx index fb24fb40c460..9d98e46e2fd0 100644 --- a/components/menu/style/theme.tsx +++ b/components/menu/style/theme.tsx @@ -178,7 +178,7 @@ const getThemeStyle = (token: MenuToken, themeSuffix: string): CSSInterpolation [`&:hover, &-active, &-open`]: { '&::after': { - borderWidth: `${colorActiveBarHeight}px`, + borderBottomWidth: colorActiveBarHeight, borderBottomColor: colorItemTextSelectedHorizontal, }, }, @@ -186,7 +186,7 @@ const getThemeStyle = (token: MenuToken, themeSuffix: string): CSSInterpolation color: colorItemTextSelectedHorizontal, backgroundColor: colorItemBgSelectedHorizontal, '&::after': { - borderWidth: `${colorActiveBarHeight}px`, + borderBottomWidth: colorActiveBarHeight, borderBottomColor: colorItemTextSelectedHorizontal, }, },