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

SidebarMenu menuItem href elements contain the aria-selected tag #385

Open
emichaud998 opened this issue May 20, 2022 · 1 comment
Open

Comments

@emichaud998
Copy link

I have an R shiny dashboard and I am currently trying to fix accessibility issues flagged by the axe DevTools chrome extension, and I have been able to fix all the issues but one. The issue that I cannot resolve is flagged by a test that ensures ARIA attributes are allowed for an element's role. The problem is that the sidebarMenu's menuItems contain href elements that contain the aria-selected tag which is automatically set to true when the tab is selected or set to false when a different tab is selected. However, these elements should not have this type of tag, which is why it is failing the accessibility check. I have tried removing the tags and replacing it with aria-current manually using JS every time a menuItem is selected, since aria-current is allowed, but the aria-selected tag is added back automatically by the sidebarMenu code, so I am not able to remove it and fix the issue.

@YongbingDing
Copy link

YongbingDing commented May 20, 2022 via email

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

No branches or pull requests

2 participants