Skip to content

Commit

Permalink
fix: dropdown & menu disabled text color
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangfuhao committed Dec 11, 2023
1 parent 2f3ba43 commit bed6b2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/dropdown/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
8 changes: 4 additions & 4 deletions src/menu/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}
}
}
Expand Down

0 comments on commit bed6b2c

Please sign in to comment.