Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ability to specify a role for menu item #1548

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Kyzyl-ool
Copy link
Contributor

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@@ -25,6 +25,7 @@ export interface MenuItemProps extends DOMProps, QAProps {
| React.HTMLAttributes<HTMLDivElement>
| React.AnchorHTMLAttributes<HTMLAnchorElement>;
children?: React.ReactNode;
itemRole?: React.AriaRole;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just a role?

<li
ref={ref as React.ForwardedRef<HTMLLIElement>}
className={b('list-item')}
role={itemRole}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's pass default menuitem value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants