From 6972656070c585fbc03e4faab29e000271ea51a1 Mon Sep 17 00:00:00 2001 From: Simone Date: Fri, 19 Jul 2024 17:00:52 +0200 Subject: [PATCH] fix: menu item disabled style wrongly applied (#1760) --- .changeset/chatty-jokes-grow.md | 5 +++++ packages/design-system/src/components/SimpleMenu/Menu.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/chatty-jokes-grow.md diff --git a/.changeset/chatty-jokes-grow.md b/.changeset/chatty-jokes-grow.md new file mode 100644 index 000000000..3efd09cf2 --- /dev/null +++ b/.changeset/chatty-jokes-grow.md @@ -0,0 +1,5 @@ +--- +'@strapi/design-system': patch +--- + +fix aria-disabled css rule on menu item diff --git a/packages/design-system/src/components/SimpleMenu/Menu.tsx b/packages/design-system/src/components/SimpleMenu/Menu.tsx index bdf72f58b..7f3e85050 100644 --- a/packages/design-system/src/components/SimpleMenu/Menu.tsx +++ b/packages/design-system/src/components/SimpleMenu/Menu.tsx @@ -180,7 +180,7 @@ const getOptionStyle = ({ theme }: { theme: DefaultTheme }) => css` border-radius: ${theme.borderRadius}; padding: ${theme.spaces[2]} ${theme.spaces[4]}; - &[aria-disabled] { + &[aria-disabled='true'] { cursor: not-allowed; color: ${theme.colors.neutral500}; }