From 09d5e36cfa27e371a7b4d4e68276a279698ea901 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 17 May 2018 21:17:20 +0800 Subject: [PATCH] style: fix hightlight link color in menu item --- components/menu/style/index.less | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/components/menu/style/index.less b/components/menu/style/index.less index d39012749c..1b3c004300 100644 --- a/components/menu/style/index.less +++ b/components/menu/style/index.less @@ -279,14 +279,19 @@ } } - > .@{menu-prefix-cls}-item > a { - display: block; - color: @menu-item-color; - &:hover { - color: @menu-highlight-color; + > .@{menu-prefix-cls}-item { + > a { + display: block; + color: @menu-item-color; + &:hover { + color: @menu-highlight-color; + } + &:before { + bottom: -2px; + } } - &:before { - bottom: -2px; + &-selected > a { + color: @menu-highlight-color; } }