elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.82k stars 8.2k forks source link

[Stateful: Indices: Overview page] Wrong focus order after generating API key on the dialog #196490

Open L1nBra opened 5 days ago

L1nBra commented 5 days ago

Description Focus order should be clear and in sequence, changes on the dialog should be announced, for the users to be able to navigate easily and understand what is happening, especially for the users using assistive technologies.

Preconditions Stateful Indices -> Overview page is opened. Use Screen Reader (NVDA).

Steps to reproduce

1.Navigate to New button while using only keyboard by pressing Tab key (in Generate an API key section). 2.Press Enter. 3.Navigate to Name your API key input field while pressing Tab key. 4.Enter any text (f.e: test). 5.Navigate to Generate API key button while pressing Tab key. 6.Press Enter. 7.Observe screen reader announcement. 8.Press Tab key. 9.Observe screen reader announcement.

UI elements Image Image Image

NVDA Speech Viewer Image 1 - step 7 (New button which is under the dialog announced). 2,3 - step 9 (focus on Cancel button but additionally before, dialog and generated key is announced).

Actual Result

Expected Result

Meta Issue

Kibana Version: 8.16.0-SNAPSHOT

OS: Windows 11 Pro

Browser: Chrome Version 129.0.6668.101 (Official Build) (64-bit)

WCAG or Vendor Guidance (optional)

Relevant ARIA spec: Dialog (Modal) Pattern Pattern(https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/)

Related to: https://github.com/elastic/search-team/issues/8256

elasticmachine commented 5 days ago

Pinging @elastic/kibana-accessibility (Project:Accessibility)