From 89e7a8f1312086e91a9c639f198f4d8f4d4c86b3 Mon Sep 17 00:00:00 2001 From: Laura Silva <91160746+silvalaura@users.noreply.github.com> Date: Fri, 20 Oct 2023 14:14:54 -0400 Subject: [PATCH] fix(DropdownExpandableMenuListItem): Add role (#1149) --- .changeset/dropdown-menuItemRole.md | 5 +++++ .../components/Dropdown/DropdownExpandableMenuListItem.tsx | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/dropdown-menuItemRole.md diff --git a/.changeset/dropdown-menuItemRole.md b/.changeset/dropdown-menuItemRole.md new file mode 100644 index 000000000..fb12b3142 --- /dev/null +++ b/.changeset/dropdown-menuItemRole.md @@ -0,0 +1,5 @@ +--- +'react-magma-dom': patch +--- + +fix(DropdownExpandableMenuListItem): Add `role="menuitem"` \ No newline at end of file diff --git a/packages/react-magma-dom/src/components/Dropdown/DropdownExpandableMenuListItem.tsx b/packages/react-magma-dom/src/components/Dropdown/DropdownExpandableMenuListItem.tsx index 36ab8ecfd..b3fac34dc 100644 --- a/packages/react-magma-dom/src/components/Dropdown/DropdownExpandableMenuListItem.tsx +++ b/packages/react-magma-dom/src/components/Dropdown/DropdownExpandableMenuListItem.tsx @@ -60,6 +60,7 @@ export const DropdownExpandableMenuListItem = React.forwardRef< isExpandablePanel={menuGroupContext.isExpandablePanel} ref={expandableMenuItemContext.disabled ? null : ref} theme={theme} + role="menuitem" > {children}