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
- change: drop div + change css

Signed-off-by: Michael Fresco <15065392+michaelfresco@users.noreply.github.com>
  • Loading branch information
michaelfresco committed Nov 7, 2024
1 parent 54f36c7 commit 9f1f121
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/components/nav-bar/nav-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ $nav-break-height-sm: 746px;
margin: 20px 0;
padding-right: 3px;
font-size: 34px;
font-family: inherit;
line-height: 1.5;
display: block;
width: 100%;
color: $white-color;
text-align: center;
cursor: pointer;
Expand Down
4 changes: 2 additions & 2 deletions src/components/nav-bar/nav-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ 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}>
<div className={classNames('nav-bar__item', { active: isActiveRoute(locationPath, item.path) })}
<button className={classNames('nav-bar__item', { active: isActiveRoute(locationPath, item.path) })}
onClick={() => context.router.history.push(item.path)}>
<i className={item.iconClassName}/>
</div>
</button>
</Tooltip>
))}
</div>
Expand Down

0 comments on commit 9f1f121

Please sign in to comment.