Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove reset suffix when the menu item is disabled
  • Loading branch information
aaronrobertshaw committed Sep 21, 2022
commit c78a22ae35fce80d15a797e12c759193ca49a21e
2 changes: 1 addition & 1 deletion packages/components/src/tools-panel/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const ResetLabel = styled.span`
export const DefaultControlsItem = css`
color: ${ COLORS.gray[ 900 ] };

&[aria-disabled='true'] {
&&[aria-disabled='true'] {
color: ${ COLORS.gray[ 700 ] };
opacity: 1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ const DefaultControlsGroup = ( {
role="menuitemcheckbox"
isSelected
aria-disabled
suffix={ resetSuffix }
>
{ label }
</MenuItem>
Expand Down