Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
silvalaura committed Oct 20, 2023
1 parent 8bfc6e7 commit a57fd53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .changeset/dropdown-menuItemRole.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'react-magma-dom': patch
---

fix(DropdownExpandableMenuItem): Add role
fix(DropdownExpandableMenuListItem): Add `role="menuitem"`
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ export const DropdownExpandableMenuItem = React.forwardRef<

return (
<DropdownExpandableMenuItemContext.Provider value={{ disabled }}>
<AccordionItem
{...other}
isDisabled={disabled}
ref={ref}
testId={testId}
role="menuitem"
>
<AccordionItem {...other} isDisabled={disabled} ref={ref} testId={testId}>
{children}
</AccordionItem>
</DropdownExpandableMenuItemContext.Provider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const DropdownExpandableMenuListItem = React.forwardRef<
isExpandablePanel={menuGroupContext.isExpandablePanel}
ref={expandableMenuItemContext.disabled ? null : ref}
theme={theme}
role="menuitem"
>
{children}
</StyledDropdownMenuItem>
Expand Down

0 comments on commit a57fd53

Please sign in to comment.