[Uptime] Focus is lost when navigating to a new route #100725
Labels
accessibility best practice
bug
Fixes for quality problems that affect the customer experience
Team:Uptime - DEPRECATED
Synthetics & RUM sub-team of Application Observability
v8.0.0
Kibana version:
8.x
Elasticsearch version:
8.x
Server OS version:
macOS
Browser version:
Chrome 90.x
Browser OS version:
macOS
Original install method (e.g. download page, yum, from source, etc.):
from source
Describe the bug:
When navigating to an Uptime route using the keyboard, focus is lost. This happens when the previously focused element is unmounted. This leaves keyboard/assistive technology users lost without context of what changed on the page.
One common best practice is to focus on the h1 of the page on route changes. However, there are a few different approaches available. We could check in with the a11y team to see what is recommended at Elastic.
Steps to reproduce:
Expected behavior:
Focus should be considered and properly managed on route changes. If we decide to focus on the h1, then the screenreader will announce the title of the page, providing the user with some context as to where they are on the page.
Screenshots (if relevant):
In this example, a keyboard user is using the monitor name to navigate to the monitor details page. Notice how focus is lost when navigating. This causes a situation where the new context of the page is not announced for those who are using screenreader technology.
Errors in browser console (if relevant):
N/A
Provide logs and/or server output (if relevant):
N/A
The text was updated successfully, but these errors were encountered: