primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.41k stars 1.22k forks source link

TieredMenu: aria-level attribute not allowed #4611

Open anqaka opened 1 year ago

anqaka commented 1 year ago

Describe the bug

In the TieredMenu component, on the menu list item (li[role="menuitem"] the aria-level attribute is used. This attribute is not allowed on role="menuitem"

Reproducer

https://codesandbox.io/p/sandbox/dark-glade-fmmz2r?welcome=true

PrimeVue version

3.35.0

Vue version

3.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

I used an axe DevTolls extension to check the issue, a link to the tools (https://www.deque.com/axe/devtools/chrome-browser-extension/) Docs for aria-level - https://w3c.github.io/aria/#aria-level this attribute is used in roles:

In the menuitem role documentation, aria-level is not supported: https://w3c.github.io/aria/#menuitem

Expected behavior

Remove an unsupported aria attribute.

superRainbow commented 11 months ago

I have the same problem 🙏

freddiv commented 9 months ago

I am also facing this issue.