Skip to content

Conversation

@alexwizp
Copy link
Contributor

@alexwizp alexwizp commented Oct 21, 2025

Summary

This PR fixes a problem introduced in #9100 , where a role="button" was added to a EuiBetaBadge -> <span> element.

Unfortunately, that change prevents us from updating Kibana, as the configured AXE Core accessibility checks flag it as a violation:

[aria-command-name]: Ensure every ARIA button, link, and menuitem has an accessible name  
Impact: serious  
Help: https://dequeuniversity.com/rules/axe/4.10/aria-command-name?application=axeAPI  
Elements:  
  - <span tabindex="0" role="button" class="euiBetaBadge css-rbgvzw-euiBetaBadge-hollow-m-baseline">  
  - <span tabindex="0" role="button" class="euiBetaBadge css-rbgvzw-euiBetaBadge-hollow-m-baseline">  

Fix
This PR adds the required aria-label attribute to provide an accessible name for the button element, resolving the AXE violation.

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@alexwizp alexwizp marked this pull request as ready for review October 21, 2025 10:26
@alexwizp alexwizp requested a review from a team as a code owner October 21, 2025 10:26
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@alexwizp alexwizp closed this Oct 22, 2025
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.

2 participants