Skip to content

Commit

Permalink
Improve a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
Heenawter committed Apr 10, 2023
1 parent b81f029 commit 7bd06a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/navigation/public/top_nav_menu/top_nav_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export function TopNavMenu<QT extends AggregateQuery | Query = Query>(
}

function createBadge({ badgeText, toolTipProps, ...badgeProps }: Badge, i: number): ReactElement {
const Badge = ({ key }: { key?: string }) => (
<EuiBadge {...key} {...badgeProps}>
const Badge = ({ key, ...rest }: { key?: string }) => (
<EuiBadge key={key} tabIndex={0} {...rest} {...badgeProps}>
{badgeText}
</EuiBadge>
);
Expand Down

0 comments on commit 7bd06a1

Please sign in to comment.