Browse Source

Fix menu item's clickable region in dark theme (#10187)

* remove redundant style for submenu

* Fix menu item's clickable region in dark theme
pull/10191/head
Jiabin Peng 7 years ago
committed by 偏右
parent
commit
bb720aaab9
  1. 4
      components/menu/style/dark.less
  2. 18
      components/menu/style/index.less

4
components/menu/style/dark.less

@ -33,6 +33,10 @@
border-bottom: 0;
}
&-dark&-horizontal > &-item > a:before {
bottom: 0;
}
&-dark &-item,
&-dark &-item-group-title,
&-dark &-item > a {

18
components/menu/style/index.less

@ -277,16 +277,16 @@
border-bottom: 2px solid @menu-highlight-color;
color: @menu-highlight-color;
}
}
> a {
display: block;
color: @menu-item-color;
&:hover {
color: @menu-highlight-color;
}
&:before {
bottom: -2px;
}
> .@{menu-prefix-cls}-item > a {
display: block;
color: @menu-item-color;
&:hover {
color: @menu-highlight-color;
}
&:before {
bottom: -2px;
}
}

Loading…
Cancel
Save