diff --git a/components/menu/style/dark.less b/components/menu/style/dark.less index dee1689a6e..51084c2232 100644 --- a/components/menu/style/dark.less +++ b/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 { diff --git a/components/menu/style/index.less b/components/menu/style/index.less index aebad1b585..d39012749c 100644 --- a/components/menu/style/index.less +++ b/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; } }