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

MenuBar: ARIA attribute is not allowed: aria-level="1" #7249

Open
1 of 4 tasks
ali-418 opened this issue Feb 12, 2025 · 1 comment
Open
1 of 4 tasks

MenuBar: ARIA attribute is not allowed: aria-level="1" #7249

ali-418 opened this issue Feb 12, 2025 · 1 comment
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA Status: Pending Review Issue or pull request is being reviewed by Core Team
Milestone

Comments

@ali-418
Copy link

ali-418 commented Feb 12, 2025

Describe the bug

Reopen of #6401. The issue was closed with the Cannot Replicate label but the issue is still present.

Quoted from #6401:

aria-level property can be used with roles: heading, listitem, row, or treeitem. The <li> elements used to create the menu items use the menuitem role. This role does not allow for the aria-level attribute.

This is also flagged by the Accessibility Insights for Web tool. (aria-allowed-attr)

Image

Image

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/dj98txgi

Environment

PrimeVue 4 and Nuxt 3. However, the issue is also present on the PrimeVue website (https://primevue.org/menubar/)

Vue version

3

PrimeVue version

4.2.5

Node version

20.17.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to the reproducer
  2. Open the preview in a new tab and connect to project (this is important for the next step)
  3. Run the Accessibility Insights for Web extension and select the FastPass option
  4. The extension reports error for aria-allowed-attr (WCAG 4.1.2)

Expected behavior

Accessibility Insights for Web reports no error for aria-allowed-attr

@ali-418 ali-418 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 12, 2025
@tugcekucukoglu tugcekucukoglu added Status: Pending Review Issue or pull request is being reviewed by Core Team Component: Accessibility Issue or pull request is related to WCAG or ARIA and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 20, 2025
@tugcekucukoglu tugcekucukoglu added this to the Future milestone Feb 20, 2025
@github-project-automation github-project-automation bot moved this to Review in PrimeVue Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA Status: Pending Review Issue or pull request is being reviewed by Core Team
Projects
Status: Review
Development

No branches or pull requests

2 participants