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

fix: The navItems are not clickable with vimium (accessibility) #545

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michaelfresco
Copy link

Motivation

  • This PR adds a tag role="checkbox" to the navItems. This has the benefit that keyboard users can use vimium to navigate the user interface. At the moment, the navItems do not show up as links, because they do not contain a typical <a href>

  • Adding role="checkbox" works around that issue, and makes them clickable

  • Please also see the original issue: The navItems are not clickable with vimium (accessibility) argo-workflows#12813

@michaelfresco michaelfresco changed the title fix: The navItems are not clickable with vimium (accessibility) (#12813) fix: The navItems are not clickable with vimium (accessibility) Mar 17, 2024
@@ -36,7 +36,7 @@ export const NavBar: React.FunctionComponent<NavBarProps> = (props: NavBarProps,
{(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) })}
onClick={() => context.router.history.push(item.path)}>
onClick={() => context.router.history.push(item.path)} role="checkbox">
Copy link
Member

Choose a reason for hiding this comment

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

  • At the moment, the navItems do not show up as links, because they do not contain a typical <a href>

why not use an actual <Link> component here? Same as #222 (comment), that would resolve #166 as well

@agilgur5 agilgur5 self-assigned this May 12, 2024
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.

2 participants