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

SplitButton: menu item is using 'aria-level' attribute incorrectly #15130

Closed
ppc-harmoney opened this issue Mar 21, 2024 · 0 comments · Fixed by #15474
Closed

SplitButton: menu item is using 'aria-level' attribute incorrectly #15130

ppc-harmoney opened this issue Mar 21, 2024 · 0 comments · Fixed by #15474
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@ppc-harmoney
Copy link
Contributor

ppc-harmoney commented Mar 21, 2024

Describe the bug

We are using prime ng in an application that is legally required to be WCAG compliant. To check compliance we are using Axe devtools.

It appears that the menu items for the split button are not setting the correct aria attributes, as we are seeing this error:
ARIA attribute is not allowed: aria-level="1"

image

Environment

Windows 11 Pro

Reproducer

No response

Angular version

16.2.9

PrimeNG version

16.9.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.18.2

Browser(s)

chrome 123

Steps to reproduce the behavior

Open the menu of a splitbutton and run a scan using axe devtools.

Expected behavior

I'm not entirely sure if the attribute should be corrected or removed, but axe devtool should not indicate it as a problem.

@ppc-harmoney ppc-harmoney added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 21, 2024
@cetincakiroglu cetincakiroglu added this to the 17.16.1 milestone May 8, 2024
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working 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 May 8, 2024
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 Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants