From cc23f74980ef8bd7b5e231bcf390bcedb6b7404a Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Mon, 26 Dec 2022 16:31:02 +0800 Subject: [PATCH] fix: menu slide bar style --- 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, }, },