vaadin / web-components

A set of high-quality standards based web components for enterprise web applications. Part of Vaadin 20+
https://vaadin.com/docs/latest/components
443 stars 83 forks source link

Grid cell should tell more about its content on focus #7225

Open AndreasSamjeske opened 5 months ago

AndreasSamjeske commented 5 months ago

What is the problem?

If you focus a grid cell with a link or a button, NVDA tells you about the cells text content. But NVDA doesn't tell you if there is ab link or a button, you may activate. In fact, depending on the cell structure, SPACE activates certain elements. NVDA should tell you, what happens on pressing SPACE.

Browsers

Screen Readers

juuso-vaadin commented 2 months ago

The same issue surfaces on when Grid is in multiselect mode. Checkbox components have aria-label="Select row" but that is not announced when cell is focused or checkbox is triggered from cell level.

Ideally some identifying information could be passed to dynamic aria-labels. For example "Select row: John Doe", "Delete: John Doe".

AndreasSamjeske commented 1 month ago

The same issue surfaces on when Grid is in multiselect mode. Checkbox components have aria-label="Select row" but that is not announced when cell is focused or checkbox is triggered from cell level.

Ideally some identifying information could be passed to dynamic aria-labels. For example "Select row: John Doe", "Delete: John Doe".

I think this issue is not the right one for your comment. Take a look at #3471. My comment is about those aria-labels and what NVDA is telling you.