Skip to content

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

Merged
1Copenut merged 3 commits intoelastic:mainfrom
1Copenut:bug/badge-roll-6011
Jul 26, 2022
Merged

[BUG]: Adding role=marquee to EuiFilterButton#6076
1Copenut merged 3 commits intoelastic:mainfrom
1Copenut:bug/badge-roll-6011

Conversation

@1Copenut
Copy link
Copy Markdown
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
Copy Markdown

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

1 similar comment
@kibanamachine
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@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
Copy Markdown

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