-
Notifications
You must be signed in to change notification settings - Fork 83
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
Lighthouse warning: Buttons do not have an accessible name #866
Comments
Apparently, latest Lighthouse beta changed the a11y audit and there are new warnings. We need to check other components too. |
@web-padawan thanks! Anyway, I have used the stable Lighthouse v3.0.0. |
Confirmed this warning with the Lighthouse 3.0.1 (available as a Chrome extension) |
Any news here? Thanks in advance! |
+1 |
+1 |
Reopening this, as the previous fix had to be reverted (c451eaa) to fix a performance regression (#128) |
Any news on this? |
I tested this with ---
Rule: aria-allowed-role
Impact: minor
ARIA role must be appropriate for the element (https://dequeuniversity.com/rules/axe/3.4/aria-allowed-role?application=axeAPI)
Issue target: vaadin-drawer-toggle,button
Context: <button type="button" role="presentation" tabindex="0"></button>
Fix any of the following:
ARIA role presentation is not allowed for given element
---
Rule: button-name
Impact: critical
Buttons must have discernible text (https://dequeuniversity.com/rules/axe/3.4/button-name?application=axeAPI)
Issue target: vaadin-drawer-toggle
Context: <vaadin-drawer-toggle tabindex="0" role="button"></vaadin-drawer-toggle>
Fix any of the following:
Element does not have inner text that is visible to screen readers
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element's default semantics were not overridden with role="presentation"
Element's default semantics were not overridden with role="none"
Element has no title attribute or the title attribute is empty
--- When trying to use Accessibility Violations
---
Rule: aria-hidden-focus
Impact: serious
ARIA hidden element must not contain focusable elements (https://dequeuniversity.com/rules/axe/3.4/aria-hidden-focus?application=axeAPI)
Issue target: vaadin-drawer-toggle,button
Context: <button type="button" aria-hidden="true" tabindex="0"></button>
Fix all of the following:
Focusable content should be disabled or be removed from the DOM Regardless of that, VoiceOver on Safari properly handles |
Note: the original decision to use this roles structure was done 2 years ago: See the comments I have tried to revert
When adding |
See https://www.w3.org/TR/using-aria/#fifthrule for the actual issue. |
Did some testing and buttons are announced as they should when using
Button label is not announced at all in
I don't have access to JAWS at the moment. Current workaround is to manually set the aria-label. |
Lighthouse report from vaadin-button v2.0.1 demos:
https://builder-dot-lighthouse-ci.appspot.com/report.1530781843420.html
The text was updated successfully, but these errors were encountered: