From bed6b2c6999ea66d72a44f3231d181d0a0959f3e Mon Sep 17 00:00:00 2001 From: zhangfuhao <张福浩> Date: Mon, 11 Dec 2023 19:00:02 +0800 Subject: [PATCH] fix: dropdown & menu disabled text color --- src/dropdown/index.less | 4 ++-- src/menu/index.less | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dropdown/index.less b/src/dropdown/index.less index 8e9eb746..78e8c901 100644 --- a/src/dropdown/index.less +++ b/src/dropdown/index.less @@ -226,11 +226,11 @@ } &-disabled { - color: @disabled-color; + color: @disabled-text-color; cursor: not-allowed; &:hover { - color: @disabled-color; + color: @disabled-text-color; background-color: @dropdown-menu-submenu-disabled-bg; cursor: not-allowed; } diff --git a/src/menu/index.less b/src/menu/index.less index b080791e..6f91f74d 100644 --- a/src/menu/index.less +++ b/src/menu/index.less @@ -704,7 +704,7 @@ // Disabled state sets text to gray and nukes hover/tab effects &-item-disabled, &-submenu-disabled { - color: @disabled-color !important; + color: @disabled-text-color !important; background: none; cursor: not-allowed; @@ -713,16 +713,16 @@ } a { - color: @disabled-color !important; + color: @disabled-text-color !important; pointer-events: none; } > .@{menu-prefix-cls}-submenu-title { - color: @disabled-color !important; + color: @disabled-text-color !important; cursor: not-allowed; > .@{menu-prefix-cls}-submenu-arrow { &::before, &::after { - background: @disabled-color !important; + background: @disabled-text-color !important; } } }