From 44ae7f1b936d6192d214f9c6ac7456aa0645bc7b Mon Sep 17 00:00:00 2001 From: undefined Date: Mon, 6 Sep 2021 21:26:43 +0800 Subject: [PATCH] fix: dropdown menuitem danger not work #4618 close #4618 --- components/dropdown/style/index.less | 1 + components/dropdown/style/status.less | 12 ++++++++++++ v2-doc | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 components/dropdown/style/status.less diff --git a/components/dropdown/style/index.less b/components/dropdown/style/index.less index f61c38aba..78fa1395d 100644 --- a/components/dropdown/style/index.less +++ b/components/dropdown/style/index.less @@ -1,5 +1,6 @@ @import '../../style/themes/index'; @import '../../style/mixins/index'; +@import './status'; @dropdown-prefix-cls: ~'@{ant-prefix}-dropdown'; diff --git a/components/dropdown/style/status.less b/components/dropdown/style/status.less new file mode 100644 index 000000000..327cf488a --- /dev/null +++ b/components/dropdown/style/status.less @@ -0,0 +1,12 @@ +@import './index'; + +.@{dropdown-prefix-cls}-menu-item { + &&-danger { + color: @error-color; + + &:hover { + color: @text-color-inverse; + background-color: @error-color; + } + } +} diff --git a/v2-doc b/v2-doc index 17abe8a32..371725ede 160000 --- a/v2-doc +++ b/v2-doc @@ -1 +1 @@ -Subproject commit 17abe8a32a993726902f52e153f5470c1ffba02a +Subproject commit 371725edee4a3af9d21b50bba5faf37594d16279