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

[BUG]: Adding role=marquee to EuiFilterButton #6076

Merged
merged 3 commits into from
Jul 26, 2022

Conversation

1Copenut
Copy link
Contributor

@1Copenut 1Copenut commented Jul 26, 2022

Summary

@Heenawter reported an axe violation in EUI issue #6011 for the EuiFilterButton component. I solved this issue by adding a role of "marquee" to the badge inside the button. This felt like the correct role based on MDN documentation and will be non-breaking change.

Closes #6011

Checklist

  • Checked 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
  • Updated the Figma library counterpart
  • A changelog entry exists and is marked appropriately

@1Copenut 1Copenut marked this pull request as ready for review July 26, 2022 16:30
@kibanamachine
Copy link

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

1 similar comment
@kibanamachine
Copy link

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

Copy link
Member

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

👍 LGTM! This feels like an appropriate/clever solution.

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
@kibanamachine
Copy link

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

@1Copenut 1Copenut merged commit 1b60ad4 into elastic:main Jul 26, 2022
@1Copenut 1Copenut deleted the bug/badge-roll-6011 branch July 26, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[EuiFilterButton] ARIA attribute not allowed for badge with no role
3 participants