Skip to content

Commit

Permalink
fix: The navItems are not clickable with vimium (accessibility) (#12813)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Fresco <[email protected]>
  • Loading branch information
michaelfresco committed Nov 6, 2024
1 parent 54f36c7 commit a38c306
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/nav-bar/nav-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ export const NavBar: React.FunctionComponent<NavBarProps> = (props: NavBarProps,
<div className='nav-bar__version'>{props.version && props.version()}</div>
{(props.items || []).map((item) => (
<Tooltip content={item.title} placement='right' arrow={true} key={item.path + item.title}>
<a href="#">
<div className={classNames('nav-bar__item', { active: isActiveRoute(locationPath, item.path) })}
onClick={() => context.router.history.push(item.path)}>
<i className={item.iconClassName}/>
</div>
</a>
</Tooltip>
))}
</div>
Expand Down

0 comments on commit a38c306

Please sign in to comment.