-
Notifications
You must be signed in to change notification settings - Fork 20
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
tr role="button" on table row #20
Comments
Hi @Wolfr, thanks for the report. Is there a way to indicate the full row can be interacted with whilst also letting screen readers understand the content are still table cells? |
I stumbled upon this because an “accessible table” problem occured again in another project. I noticed I never got to answering this. My recommendation would be to avoid the problem, by using a visible link to a detail page from an overview grid; and not make whole table rows clickable. But if you must have clickable rows (for example if a design specifies it, and you can't seem to convince the designer to drop it (hint hint ;) ); then my recommended method would be to:
Ét voila, we have an accessible table that will be read out correctly. |
We should revisit this component so we have cleaner modern EmberJS abstractions. This suggestion seems to be a great solution for efficient operation from both the perspective of highly interactive visual browser agents as well as for screen-readers and the likes. Thank you for the suggestion. Is this an urgent topic for you? |
Not very urgent, since in our big government project we don't use this pattern at the moment. However this was on my mind. Here's a codepen which shows the idea that I talked about, abstracted to as little code as possible. https://codepen.io/wolfr/pen/rNWdNyX In this video you can see me navigating using a screen reader. ScreenFlow.mp4There is a problem that you have to tab twice to get through the list when using a keyboard. Perhaps this code can help to have a more accessible Ember component. |
ember-data-table/addon/templates/components/data-table-content-body.hbs
Line 6 in ffb1e24
It is not helpful to put this ARIA role here.
You are not supposed to add
role="button"
to a table row, this doesn't help the accessibility. In my understanding of screen readers, the screen reader will now treat the whole row content as a single string and it will not be able to interpret the table correctly.The text was updated successfully, but these errors were encountered: