fix: Menu dark mode hover style (#30907)

This commit is contained in:
二货机器人 2021-06-08 16:15:55 +08:00 committed by GitHub
parent cc58210fa6
commit cedf59c886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 8 deletions

View File

@ -120,14 +120,6 @@
background-color: @border-color-split;
}
&-item:hover,
&-item-active,
&:not(&-inline) &-submenu-open,
&-submenu-active,
&-submenu-title:hover {
color: @menu-highlight-color;
}
&-horizontal &-item,
&-horizontal &-submenu {
margin-top: -1px;
@ -671,5 +663,6 @@
}
}
@import './light';
@import './dark';
@import './rtl';

View File

@ -0,0 +1,12 @@
.@{menu-prefix-cls} {
// light theme
&-light {
.@{menu-prefix-cls}-item:hover,
.@{menu-prefix-cls}-item-active,
.@{menu-prefix-cls}:not(.@{menu-prefix-cls}-inline) .@{menu-prefix-cls}-submenu-open,
.@{menu-prefix-cls}-submenu-active,
.@{menu-prefix-cls}-submenu-title:hover {
color: @menu-highlight-color;
}
}
}