mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
fix: menu style (#43656)
This commit is contained in:
parent
0ca05a7e39
commit
473130fe32
@ -941,7 +941,7 @@ export default (prefixCls: string, injectStyle: boolean): UseComponentStyleResul
|
||||
colorItemBgHover: colorBgTextHover,
|
||||
itemHoverBg: colorBgTextHover,
|
||||
colorItemBgActive: colorFillContent,
|
||||
itemActiveBg: colorFillContent,
|
||||
itemActiveBg: controlItemBgActive,
|
||||
colorSubItemBg: colorFillAlter,
|
||||
subMenuItemBg: colorFillAlter,
|
||||
colorItemBgSelected: controlItemBgActive,
|
||||
|
@ -38,6 +38,7 @@ const getThemeStyle = (token: MenuToken, themeSuffix: string): CSSInterpolation
|
||||
dangerItemSelectedBg,
|
||||
|
||||
itemHoverBg,
|
||||
itemActiveBg,
|
||||
menuSubMenuBg,
|
||||
|
||||
// Horizontal
|
||||
@ -75,11 +76,12 @@ const getThemeStyle = (token: MenuToken, themeSuffix: string): CSSInterpolation
|
||||
},
|
||||
|
||||
// Hover
|
||||
[`${componentCls}-item:hover, ${componentCls}-submenu-title:hover`]: {
|
||||
[`&:not(${componentCls}-item-selected):not(${componentCls}-submenu-selected)`]: {
|
||||
color: itemHoverColor,
|
||||
[`${componentCls}-item:not(${componentCls}-item-selected):not(${componentCls}-submenu-selected)`]:
|
||||
{
|
||||
[`&:hover, > ${componentCls}-submenu-title:hover`]: {
|
||||
color: itemHoverColor,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
[`&:not(${componentCls}-horizontal)`]: {
|
||||
[`${componentCls}-item:not(${componentCls}-item-selected)`]: {
|
||||
@ -88,7 +90,7 @@ const getThemeStyle = (token: MenuToken, themeSuffix: string): CSSInterpolation
|
||||
},
|
||||
|
||||
'&:active': {
|
||||
backgroundColor: itemSelectedBg,
|
||||
backgroundColor: itemActiveBg,
|
||||
},
|
||||
},
|
||||
|
||||
@ -98,7 +100,7 @@ const getThemeStyle = (token: MenuToken, themeSuffix: string): CSSInterpolation
|
||||
},
|
||||
|
||||
'&:active': {
|
||||
backgroundColor: itemSelectedBg,
|
||||
backgroundColor: itemActiveBg,
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -193,6 +195,9 @@ const getThemeStyle = (token: MenuToken, themeSuffix: string): CSSInterpolation
|
||||
[`&-selected`]: {
|
||||
color: horizontalItemSelectedColor,
|
||||
backgroundColor: horizontalItemSelectedBg,
|
||||
'&:hover': {
|
||||
backgroundColor: horizontalItemSelectedBg,
|
||||
},
|
||||
'&::after': {
|
||||
borderBottomWidth: activeBarHeight,
|
||||
borderBottomColor: horizontalItemSelectedColor,
|
||||
|
Loading…
Reference in New Issue
Block a user