Skip to content
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

[Logs UI] [Metrics UI] Keyboard control audit #74108

Closed
Kerry350 opened this issue Aug 3, 2020 · 5 comments
Closed

[Logs UI] [Metrics UI] Keyboard control audit #74108

Kerry350 opened this issue Aug 3, 2020 · 5 comments
Labels
bug Fixes for quality problems that affect the customer experience chore Feature:Logs UI Logs UI feature Feature:Metrics UI Metrics UI feature Project:Accessibility Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services WCAG A

Comments

@Kerry350
Copy link
Contributor

Kerry350 commented Aug 3, 2020

Summary

During 7.9 testing a few keyboard control issues have been found, we should do an audit of Logs and Metrics to see if there are any additional issues. We can most likely put all of the fixes in one PR.

Examples

The screenshots show where keyboard navigation should work.

Log stream

The logs stream, categories page examples, and anomalies page examples all make use of the same shared components to show log lines, however these lines and the context menu (with the "view in context" etc link) aren't keyboard accessible.

Screenshot 2020-08-03 16 37 04

Alerting flyout (logs and metrics)

When editing the conditions via the keyboard it's possible to enter and use the popover content, however when the popover is closed with escape the flyover loses focus, so you have to tab back through the hierarchy again to reach the expression you were dealing with.

Screenshot 2020-08-03 16 38 50

Metrics snapshot

It's possible to navigate to nodes via the keyboard, and open the node context menu with enter, however it's not possible to cycle through the full set of links with tab, instead only the last link in the list is accessible (or the first link if the menu has just been opened).

Screenshot 2020-08-03 16 41 06

ML job setup flyout (logs)

The dataset selection popovers don't receive a keyboard focus when opened.

image

Logs stream log event flyout

The "Actions" menu button can be tabbed to, enter opens the menu, however on Firefox the links can't be accessed via the keyboard. On Chrome the links can be accessed once with tab, but then the popover loses focus and can't be reached via keyboard controls again.

Screenshot:

Screenshot 2020-08-04 12 15 31

Firefox:

Firefox

Chrome:

chrome

Pointers from EUI

These are some pointers from the EUI team for whoever picks up this issue:

There were changes to the underlying focus-trap react library that could probably have affected this. elastic/eui#3631

For some of the popover issues you're seeing, I'd recommend adding ownFocus to the popover, which will move focus into the popover and will keep you there until you hit esc. For closing popovers, I'd always recommend to place focus back to wherever you expect it to go manually using the closePopover callback.

@Kerry350 Kerry350 added Feature:Metrics UI Metrics UI feature Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Aug 3, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@Kerry350 Kerry350 added the chore label Aug 3, 2020
@myasonik myasonik added bug Fixes for quality problems that affect the customer experience Project:Accessibility WCAG A labels Aug 4, 2020
@thompsongl
Copy link
Contributor

thompsongl commented Aug 11, 2020

There were changes to the underlying focus-trap react library that could probably have affected this.

Just a note on this: Those changes are not yet in Kibana, so they wouldn't be the cause. #74004 will introduce the EUI focus-trap React library changes

@weltenwort
Copy link
Member

@thompsongl good to know, thank you. Do you have any idea what else might have caused the popovers not to receive focus anymore?

@thompsongl
Copy link
Contributor

Nothing comes to mind if indeed it was an EUI change in the 7.9 timeframe. I'd follow the suggestion of auditing the use of ownFocus in the problematic popover components. If ownFocus is not in use, it's likely keyboard navigation was not really in order beforehand.

@smith
Copy link
Contributor

smith commented Jun 13, 2023

I'm sure many of these same problems exist and an audit would be helpful but we are not currently planning on doing this.

@smith smith closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience chore Feature:Logs UI Logs UI feature Feature:Metrics UI Metrics UI feature Project:Accessibility Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services WCAG A
Projects
None yet
Development

No branches or pull requests

6 participants