-
Notifications
You must be signed in to change notification settings - Fork 350
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
a11y concerns in the data-grid example #2626
Comments
https://www.w3.org/WAI/ARIA/apg/patterns/grid/#datagridsforpresentingtabularinformation:
The column headers are perceptible with the screen reader because they are automatically output with the cells. This is a feature of screen readers that works in tables and grids as long as the column headers have been marked as such (th element or role=columnheader). Personally, I think it would be better if the column headers of grids would always get the keyboard focus as well, regardless of whether they contain controls or not. |
Thanks a lot! My first implementation was to have them focusable, and the fact they are not focusable in the example took me by surprise. "They do not need to be focusable" leaves an opening to leave them focusable, right? ;) Thanks again! |
Yes. Furthermore, the ARIA APG are not normative, i.e. even if it said that column headers must not receive focus, it would not be per se forbidden to design them to receive keyboard focus anyway. Normative are the correspondingly marked sections of the ARIA specification and the WCAG. |
@mcking65 perhaps at one of the next meetings you can discuss whether it should be recommended that column headers be focusable, even if they do not contain controls. Reason:
|
Absolutely, the language is intended to convey that it is a design decision best left to individual developers. |
@JAWS-test wrote:
OK, we will discuss. Perhaps we leave it as a design decision but lean in the direction of the default approach is make them focusable. It is certainly worth a new discussion. |
The ARIA Authoring Practices (APG) Task Force just discussed The full IRC log of that discussion<jugglinmike> Topic: Issue 2626 - Guidance on focusability of col and row headers in grids<jugglinmike> github: https://github.com//issues/2626 <jugglinmike> Matt_King: Our current guidance is that if you make a grid with row and column headers, and those headers don't have any function (e.g. sort), then because they will be read by the AT, they don't need to be focusable <jugglinmike> Matt_King: The reporter suggests that the column headers should always be navigable even if they don't offer any particular functionality <jugglinmike> Matt_King: They seem to say that when the headers are not navigable, that prevents screen readers from finding the information. That isn't accurate <jugglinmike> Jem: What is the advantage of allowing focus to the column header? <jugglinmike> Matt_King: The downside of allowing focus is that it introduces another step in navigation to reach the data <jugglinmike> Matt_King: If you want to spell out the column header, you can just go into reading mode <jugglinmike> Matt_King: If you can't do anything with the column header, I don't see the value in allowing focus to visit there <jugglinmike> CurtBellew: Our libraries always have focusable headers, but they mostly have associated functionality. <jugglinmike> Jem: There may be a misunderstanding about screen readers requiring focusability to discover or announce the column headers <jugglinmike> Matt_King: Our current guidance says that you can make column headers focusable if you want to, but you don't need to make them focusable if they don't have any associated functionality <jugglinmike> Matt_King: We don't have a sortable example, and we really should <jugglinmike> Jem: We do have that, actually. It's described by a note for the datagrid example <jugglinmike> Zakim, end the meeting |
In the data-grid example, the header is not focusable. This prevents screen readers from finding out about the headers.
Is this intentional? Should the column headers be navigatable?
The text was updated successfully, but these errors were encountered: