Skip to content

Commit

Permalink
fix: dropdown menu item in danger
Browse files Browse the repository at this point in the history
Disable dropdown menu item when type is equal to danger

increase disabled CSS specificity

remove unnecessary changes

fix: remove reordering functions

Remove reordering functions by increasing `disable` class on line 350 CSS specificity

Revert "fix: remove reordering functions "

This reverts commit bd94daa.
  • Loading branch information
samyarkd authored and Wxh16144 committed Dec 29, 2022
1 parent cf41f81 commit 24c066e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/dropdown/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ const genBaseStyle: GenerateStyle<DropdownToken> = (token) => {
},
},

'&-disabled': {
[`&${menuCls}-item-disabled`]: {
color: colorTextDisabled,
cursor: 'not-allowed',

Expand Down Expand Up @@ -443,9 +443,9 @@ export default genComponentStyleHook(
dropdownEdgeChildPadding: paddingXXS,
});
return [
genStatusStyle(dropdownToken),
genBaseStyle(dropdownToken),
genButtonStyle(dropdownToken),
genStatusStyle(dropdownToken),
];
},
(token) => ({
Expand Down

0 comments on commit 24c066e

Please sign in to comment.