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

[ML] "Buttons must have discernible text" a11y violation on the memory usage annotation marker #153596

Closed
bhavyarm opened this issue Mar 23, 2023 · 2 comments · Fixed by #153876
Closed
Assignees
Labels
bug Fixes for quality problems that affect the customer experience :ml Project:Accessibility

Comments

@bhavyarm
Copy link
Contributor

Kibana version: main

Browser version: chrome latest

Browser OS version: OS X

Describe the bug: Memory usage annotation marker is violating "Buttons must have discernible text" a11y validation rule.

Screen Shot 2023-03-23 at 3 12 37 PM

@bhavyarm bhavyarm added bug Fixes for quality problems that affect the customer experience Project:Accessibility :ml labels Mar 23, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-accessibility (Project:Accessibility)

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@peteharverson peteharverson self-assigned this Mar 28, 2023
peteharverson added a commit that referenced this issue Mar 28, 2023
…rt (#153876)

## Summary

Fixes a couple of accessibility warnings - one for the unread
notifications indicator in the sidebar nav, and one on the indicator for
the maximum memory for ML native process on the memory usage chart.

#### Unread notifications indicator
Fix adds a `role` attribute which is needed when `aria-label` is used on
a `<div>`.
<img width="194" alt="image"
src="https://user-images.githubusercontent.com/7405507/228281236-0aeebb3c-8726-42ed-895f-88f2d614dc7b.png">

#### Memory usage chart
Fix adds an `aria-label` attribute to the max memory `EuiIcon` which is
rendered as a `button`.
<img width="437" alt="image"
src="https://user-images.githubusercontent.com/7405507/228281304-b42e7dcf-ecc2-45e3-8b08-a8ab43ff5f02.png">


### Checklist

- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))

Fixes #153592
Fixes #153596

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience :ml Project:Accessibility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants