-
Notifications
You must be signed in to change notification settings - Fork 1.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
[a11y]: HeaderPanel requires an aria-label but Accessibility Checker complains if you have one. #13728
Comments
We ran into the same issue. Using an @kglickman Until this is implemented in the library, we can set the |
I don't feel like either an "aside" element or a role of "complementary" are appropriate for a header. We would be silencing the Accessibility Checker but making the page more difficult to understand. |
@kglickman Perhaps the role and element I suggested are not the best choice, which ones would you suggest using? When you look at the Carbon docs on the right header panel, it states that the right panel is an |
We removed the aria label and the Accessibility Checker doesn't report an error anymore. This defect is about the prop being required, causing stacks in the console. |
Needs to be backported to V10 |
Closed via #14517 , will be included in the next version of v10 |
Package
@carbon/react
Browser
No response
Operating System
No response
Package version
1.23.0
React version
16.14.0
Automated testing tool and ruleset
IBM Equal Access Accessibility Checker
Assistive technology
No response
Description
The tool is complaining about the aria-label in the HeaderPanel. If we remove it, the error goes away but we get an annoying error from checkPropTypes in the console saying it's required.
Warning: Failed prop type: HeaderPanel requires one of the following props: aria-label, aria-labelledby
WCAG 2.1 Violation
No response
Reproduction/example
Reproducible in the story book
Steps to reproduce
Look at the Accessibility section in the this url https://react.carbondesignsystem.com/?path=/story/components-ui-shell--header-base-w-actions-and-right-panel
https://react.carbondesignsystem.com/?path=/story/components-ui-shell--header-base-w-actions-and-right-panel
Code of Conduct
The text was updated successfully, but these errors were encountered: