-
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
[ML] Adds a11y tests for ML plugin #88323
[ML] Adds a11y tests for ML plugin #88323
Conversation
Pinging @elastic/ml-ui (:ml) |
Pinging @elastic/kibana-accessibility (Project:Accessibility) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great addition! 🚀
aria-checked={chartsVisible} | ||
role="checkbox" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of changing the role of this to a checkbox
let's make this a toggle button instead
aria-checked={chartsVisible} | |
role="checkbox" | |
aria-pressed={chartsVisible} |
By not changing the role, we have a lot less risk in running into interop bugs between browsers, OSes, and assistive tech.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched to aria-pressed
in 55ed796
@@ -100,7 +100,6 @@ export const MultiSelectPicker: FC<{ | |||
<EuiFilterGroup data-test-subj={dataTestSubj}> | |||
<EuiPopover |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not something that automated tests will pick, and we do hope to change the default in EUI at some point in the future, but, in the mean time, can we set this popover to ownFocus
?
This helps keyboard-only and screen-reader users navigate to and through the popover more quickly and easily.
<EuiPopover | |
<EuiPopover | |
ownFocus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added ownFocus
in 55ed796
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - ran it in my local. This is an AWESOME first pass at ML app.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🥳
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - great to have those tests in 🎉
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
* [ML] Adds a11y tests for ML plugin * [ML] Edits to a11y tests following review
* [ML] Adds a11y tests for ML plugin * [ML] Edits to a11y tests following review
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
* [ML] Adds a11y tests for ML plugin * [ML] Edits to a11y tests following review Co-authored-by: Kibana Machine <[email protected]>
Summary
Adds accessibility tests for the ML UI. Part of #51456.
This PR adds coverage for most of the key pages in the ML plugin:
Resolves #79352
Checklist
Delete any items that are not applicable to this PR.