-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiTabs ][A11Y] - Using EuiBetaBadge
within EuiTab
#7791
Comments
Option 1 should already be fully achievable via Option 2 should not be necessary as the tab itself is not rendering a beta badge directly, it's using an https://codesandbox.io/p/sandbox/holy-surf-4cj9kk?file=%2Fdemo.js%3A30%2C7 I will note that if these tabs are using the |
@cee-chen Thank you for your answer. I've checked the EUI code, and I have a quick question about the |
eui/packages/eui/src/components/badge/beta_badge/beta_badge.tsx Lines 234 to 237 in 5c40315
|
Related to: https://github.com/elastic/observability-dev/issues/3410
We have an issue with using
EuiBetaBadge
withinEuiTab
. The AXE plugin triggers a problem:interactive controls must not be nested.
I need your guidance on how to correctly use
EuiBetaBadge
withinEuiTab
. I couldn't find a good way to fix this with the existing API. Here are my thoughts on how we can address it:EuiBetaBadge
props to allow overriding therole="button"
attribute.EuiTab
API to includebetaBadgeProps
. This would allow us to handle it more natively, similar to how it's done with EuiCards and EuiKeyPadMenuItems.I vote for option number 2
The text was updated successfully, but these errors were encountered: