-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Ensures every ARIA button, link and menuitem has an accessible name validation error in demo flights chart #148647
Comments
Pinging @elastic/kibana-accessibility (Project:Accessibility) |
Pinging @elastic/kibana-presentation (Team:Presentation) |
Another test failing with same violation in controls a11y test suite -
|
There's a great opportunity here to make these markers on the flight delay visualization (or any markers) more accessible and solve the axe violation. I see two parts:
<h2 data-test-subj="dashboardPanelTitle" class="embPanel__title">
<span id="if8987510-9122-11ed-82b7-3b342ea4f0bc" class="css-hus3oj-euiScreenReaderOnly">
Dashboard panel: [Flights] Delays & Cancellations
</span>
<span class="embPanel__titleInner">
<span class="embPanel__titleText">[Flights] Delays & Cancellations</span>
</span>
</h2>
...
! The OL will give screen reader users two pieces of context:
! 1. What information the list items will present
! 2. How many list items are available to be read back
! aria-label string will need to be built up in a `const` as string "[Flights] Delays and Cancellations Markers"
! Screen reader will announce "[Flights] Delays and Cancellations Markers, list, 20 items"
+ <ol aria-label="[Flights] Delays and Cancellations Markers">
+ <li>
<button
! Marker numbers should increase sequentially
+ aria-label="Delays and Cancellations Marker 1"
class="echAnnotation__marker"
type="button"
>
<div class="echAnnotation__icon">
<svg
aria-hidden="true"
class="euiIcon css-2txxin-euiIcon-m"
height="16"
role="img"
viewbox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"
>
<path d="M7.59 10.059L7.35..." fill-rule="evenodd"></path>
</svg>
</div>
</button>
+ </li>
! Other button markers wrapped in LIs
+ </ol> |
Looking in to this, and it looks like the a11y issues are actually related to the legend items of the @bhavyarm Unless I'm missing something, is it fair to re-assign this to the Vis team and update the issue to reflect that this isn't a controls issue? |
Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations) |
This is configured in Lens |
## Summary Closes #148647 Fixes accessibility problem on legend actions button.
Description
Dashboard controls a11y tests Add controls panel
Related Issues
aria-describedby
intobuttons
#148685The text was updated successfully, but these errors were encountered: