fix: render correct theme (#41465)

This commit is contained in:
JiaQi 2023-03-27 10:08:22 +08:00 committed by GitHub
parent c18a0ff8bc
commit 87c436cccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View File

@ -442,10 +442,15 @@ export default (prefixCls: string, injectStyle: boolean): UseComponentStyleResul
return [];
}
const { colorBgElevated, colorPrimary, colorError, colorErrorHover, colorTextLightSolid } =
token;
const { controlHeightLG, fontSize } = token;
const {
colorBgElevated,
colorPrimary,
colorError,
colorErrorHover,
colorTextLightSolid,
controlHeightLG,
fontSize,
} = token;
const menuArrowSize = (fontSize / 7) * 5;

View File

@ -46,7 +46,7 @@ const getThemeStyle = (token: MenuToken, themeSuffix: string): CSSInterpolation
} = token;
return {
[`${componentCls}-${themeSuffix}`]: {
[`${componentCls}-${themeSuffix}, ${componentCls}-${themeSuffix} > ${componentCls}`]: {
color: colorItemText,
background: colorItemBg,