mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
fix: render correct theme (#41465)
This commit is contained in:
parent
c18a0ff8bc
commit
87c436cccc
@ -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;
|
||||
|
||||
|
@ -46,7 +46,7 @@ const getThemeStyle = (token: MenuToken, themeSuffix: string): CSSInterpolation
|
||||
} = token;
|
||||
|
||||
return {
|
||||
[`${componentCls}-${themeSuffix}`]: {
|
||||
[`${componentCls}-${themeSuffix}, ${componentCls}-${themeSuffix} > ${componentCls}`]: {
|
||||
color: colorItemText,
|
||||
background: colorItemBg,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user