-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Accessibility] Remove Availability Zone button does not respond to return or enter key #28159
Comments
Pinging @elastic/infrastructure-ui |
The root cause of this is conflicts between two This particular part of the infrastructure UI renders a nested structure like so: The And then within the The reported behaviour happens as the Ideally we'd want to see behaviour where the I'll chase up if this is a problem with the way we're using / nesting EUI components, or if there's a bug within the EUI components themselves that needs fixing. |
Explanation of what's happening - The badge's x has a Wrapping the badge, the For accessibility reasons, browsers will trigger a Tab to an element and press [Space]:
Tab to an element and press [Enter]:
In this case, when [Enter] is pressed the event bubbles up to the event filter button triggering its Elements that are not input-like (form fields, buttons, etc) do not have
This is, unfortunately, working as designed because of the event order change that browsers implement. As a workaround, Kibana could wrap the badge with an element that will process the click event as it bubbles up and stop propagation. On the EUI side we could change |
@chandlerprall Thanks for taking a look in to this. This exact event order issue has bitten me before in previous work, should have spotted it 😬
Yeah, I'll look to add something on the Kibana side. I agree that, as innocent as it seems, changing from |
Steps to reproduce (assumes ChromeVox or similar)
Actual Result
Expected Result
Meta Issue #26854
Kibana Version: 6.4
Relevant WCAG Criteria: 2.1.1 Keyboard
The text was updated successfully, but these errors were encountered: