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

[A11y] Added aria-label to the flyout testenv file #5702

Merged
merged 3 commits into from
Mar 9, 2022

Conversation

yuliacech
Copy link
Contributor

@yuliacech yuliacech commented Mar 9, 2022

Summary

This PR only changes testenv file of EuiFlyout that produces a mocked version of EuiFlyout. The current mock doesn't have an aria-label on the close flyout button and causes "critical" a11y violations when an jest-axe test is run against any consuming components in Kibana (see elastic/kibana#127185).

Checklist

I don't think any of the items in the checklist are applicable because this PR only touches the mock file.

- [ ] Check against all themes for compatibility in both light and dark modes
- [ ] Checked in mobile
- [ ] Checked in Chrome, Safari, Edge, and Firefox
- [ ] Props have proper autodocs and playground toggles
- [ ] Added documentation
- [ ] Checked Code Sandbox works for any docs examples
- [ ] Added or updated jest and cypress tests
- [ ] Checked for breaking changes and labeled appropriately
- [ ] Checked for accessibility including keyboard-only and screenreader modes

  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5702/

@thompsongl thompsongl self-requested a review March 9, 2022 14:43
Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; Thanks, @yuliacech!

Just the changelog update to remove No public interface changes since 51.0.0.

CHANGELOG.md Outdated
Comment on lines 2 to 4
- Updated `testenv` mock for `EuiFlyout` to include default `aria-label` on the close button ([#5702](https://github.com/elastic/eui/pull/5702))

No public interface changes since `51.0.0`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Updated `testenv` mock for `EuiFlyout` to include default `aria-label` on the close button ([#5702](https://github.com/elastic/eui/pull/5702))
No public interface changes since `51.0.0`.
- Updated `testenv` mock for `EuiFlyout` to include default `aria-label` on the close button ([#5702](https://github.com/elastic/eui/pull/5702))

@yuliacech
Copy link
Contributor Author

Thank you for the review, @thompsongl! I removed the "no changes" line from the changelog. Waiting on the CI to get green before merging.

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5702/

@yuliacech yuliacech merged commit 2af1a59 into elastic:main Mar 9, 2022
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5702/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants