-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Dialog[Accessibility]: Required ARIA Attribute "aria-level" not present #5481
Comments
hmm @cschlechty and @JasonGore <p className={classNames.title} id={titleId} role="heading">
{title}
</p> What should be done here? We could pipe |
According to ARIA In any case, ARIA defines Assuming dialogs are considered root level, DOM hierarchy level in this case is accurate, so if there is an easy way to specify that number (nested level of the |
There should be an aria-level for anything with role="heading". Since it's in page, and not iframed, it should at best be level 2. |
@cschlechty is this something we should simply set at level 2? Or will there be opportunities where people need to change this? Same goes for other areas that we use role="header" (like the linked combobox issue) |
https://developer.microsoft.com/en-us/fabric#/components/dialog
Click on the open dialog. If you run any Accessibility tools, we can see the error:
"Required ARIA attribute not present: aria-level"
This is error is coming for the dialog's title

For the element with role as heading, setting the aria-label="1" should fix this issue.
The text was updated successfully, but these errors were encountered: