Skip to content

Commit

Permalink
[core] fix(MenuItem): make items focusable for a11y consistency (#4892)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored Sep 8, 2021
1 parent 76a90a2 commit 88a158b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/components/menu/menuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export class MenuItem extends AbstractPureComponent2<MenuItemProps & React.Ancho
const target = React.createElement(
tagName,
{
tabIndex: 0,
...htmlProps,
...(disabled ? DISABLED_PROPS : {}),
className: anchorClasses,
Expand Down

1 comment on commit 88a158b

@blueprint-bot
Copy link

Choose a reason for hiding this comment

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

[core] fix(MenuItem): make items focusable for a11y consistency (#4892)

Previews: documentation | landing | table

Please sign in to comment.