From fa2dcc22832d235afac9d50a28f79c568d4fbbee Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Thu, 6 Aug 2020 15:59:46 +0800 Subject: [PATCH] fix: horizontal menu in dark & dark --- components/menu/style/dark.less | 4 ++++ components/menu/style/index.less | 16 ++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/components/menu/style/dark.less b/components/menu/style/dark.less index c6369dae5312..4604c8058ce9 100644 --- a/components/menu/style/dark.less +++ b/components/menu/style/dark.less @@ -36,6 +36,10 @@ border-bottom: 0; } + &-dark&-horizontal > &-item:hover { + background-color: @menu-dark-item-active-bg; + } + &-dark&-horizontal > &-item > a::before { bottom: 0; } diff --git a/components/menu/style/index.less b/components/menu/style/index.less index 2d9eeb224656..0e47ff935c81 100644 --- a/components/menu/style/index.less +++ b/components/menu/style/index.less @@ -350,6 +350,14 @@ padding: @menu-item-padding; padding-right: 0; padding-left: 0; + + &:hover, + &-active, + &-open, + &-selected { + color: @menu-highlight-color; + border-bottom: 2px solid @menu-highlight-color; + } } } @@ -360,14 +368,6 @@ display: inline-block; vertical-align: bottom; border-bottom: 2px solid transparent; - - &:hover, - &-active, - &-open, - &-selected { - color: @menu-highlight-color; - border-bottom: 2px solid @menu-highlight-color; - } } > .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {