[EuiBetaBadge] Improved the accessibility experience of EuiBetaBadge component#7805
[EuiBetaBadge] Improved the accessibility experience of EuiBetaBadge component#7805cee-chen merged 5 commits intoelastic:mainfrom
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! |
cee-chen
left a comment
There was a problem hiding this comment.
🚀 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=buttonfor cases when the user doesn't provide anonClickorhrefattribute. In that mode, the component only shows the tooltip