Skip to content

Commit 6972656

Browse files
authored
fix: menu item disabled style wrongly applied (#1760)
1 parent 4b0cf89 commit 6972656

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/chatty-jokes-grow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@strapi/design-system': patch
3+
---
4+
5+
fix aria-disabled css rule on menu item

packages/design-system/src/components/SimpleMenu/Menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const getOptionStyle = ({ theme }: { theme: DefaultTheme }) => css`
180180
border-radius: ${theme.borderRadius};
181181
padding: ${theme.spaces[2]} ${theme.spaces[4]};
182182
183-
&[aria-disabled] {
183+
&[aria-disabled='true'] {
184184
cursor: not-allowed;
185185
color: ${theme.colors.neutral500};
186186
}

0 commit comments

Comments
 (0)