From cfff7967b3a7151715ef2f0f8d05c5ce38583534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Wed, 3 Jun 2020 13:33:37 +0800 Subject: [PATCH] fix: Dropdown menu item link color when has icon (#24702) * :bug: fix Dropdown menu item link color when has icon close #24700 * fix snapshot --- components/dropdown/style/index.less | 8 ++++ .../__tests__/__snapshots__/demo.test.js.snap | 44 +++++++++---------- components/menu/demo/vertical.md | 10 +---- 3 files changed, 30 insertions(+), 32 deletions(-) diff --git a/components/dropdown/style/index.less b/components/dropdown/style/index.less index 108935da87..6660a768cd 100644 --- a/components/dropdown/style/index.less +++ b/components/dropdown/style/index.less @@ -117,6 +117,14 @@ } } + > .@{iconfont-css-prefix} + span > a { + color: @text-color; + transition: all 0.3s; + &:hover { + color: @text-color; + } + } + &:first-child { & when (@dropdown-edge-child-vertical-padding = 0) { border-radius: @border-radius-base @border-radius-base 0 0; diff --git a/components/menu/__tests__/__snapshots__/demo.test.js.snap b/components/menu/__tests__/__snapshots__/demo.test.js.snap index 338b71fbef..493de25fac 100644 --- a/components/menu/__tests__/__snapshots__/demo.test.js.snap +++ b/components/menu/__tests__/__snapshots__/demo.test.js.snap @@ -1302,30 +1302,28 @@ exports[`renders ./components/menu/demo/vertical.md correctly 1`] = ` class="ant-menu-submenu-title" role="button" > - - + - - Navigation Two - + + + + + Navigation Two Option 4 - - - Navigation Two - - } - > + } title="Navigation Two"> Option 5 Option 6