-
Notifications
You must be signed in to change notification settings - Fork 842
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
[EuiBetaBadge] Improved the accessibility experience of EuiBetaBadge component #7805
Conversation
Just to confirm my understanding of this role, it only applies for click events? I assumed it was there because the tooltip applies a focus event (the tooltip shows on keyboard focus). Is that not sufficient for a button role? |
@cee-chen, it's a good question. In my understanding, no, and it's in line with what we already have in @dave-gus, do you have any ideas here? |
Ooo actually the MDN link is super helpful, I probably should have just looked that up first! Thank you Alexey!
The tooltip triggers do not have click/keydown handles, only focus, so IMO that does qualify them as not fully buttons. Let's go ahead and make this change. Also great point that EuiIconTip doesn't behave this way! |
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.
🚀 Thanks again for the amazing a11y discussions and contributions Alexey!
Preview staging links for this PR:
|
💚 Build Succeeded
History
|
`v94.5.2` ⏩ `v94.6.0` [Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams) --- ## [`v94.6.0`](https://github.com/elastic/eui/releases/v94.6.0) - Updated `EuiComboBox` to support rendering `option.append` and `option.prepend` in group labels ([#7800](elastic/eui#7800)) **Accessibility** - Improved the accessibility experience of `EuiBetaBadge` ([#7805](elastic/eui#7805))
`v94.5.2` ⏩ `v94.6.0` [Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams) --- ## [`v94.6.0`](https://github.com/elastic/eui/releases/v94.6.0) - Updated `EuiComboBox` to support rendering `option.append` and `option.prepend` in group labels ([elastic#7800](elastic/eui#7800)) **Accessibility** - Improved the accessibility experience of `EuiBetaBadge` ([elastic#7805](elastic/eui#7805))
Closes: #7791
Summary
Remove
role=button
for cases when the user doesn't provide anonClick
orhref
attribute. In that mode, the component only shows the tooltip