-
Notifications
You must be signed in to change notification settings - Fork 395
10/UI/Table Data & Ordering accessibility validation 44005 44065 #9504
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
10/UI/Table Data & Ordering accessibility validation 44005 44065 #9504
Conversation
|
I hope the assignments are correct. https://mantis.ilias.de/view.php?id=44065 and https://mantis.ilias.de/view.php?id=44005 |
|
Thx Denis, afaik macht bei CaT Arbeiten @klees immer zuerst das interne Review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @catenglaender,
aaah, look at us, not taking care or knowing s**t about accessibility ^^
Please answer the following questions:
-
grid-role: If I remember correctly, that role was the key to allow for movement via arrow-keys in the table. Did you check for that feature after removal of thegridrole?
The rest looks good, thanks so much for the investigation and improvements.
Best regards!
e8062c1 to
88d8f9c
Compare
|
Thanks for the input! 🙂
|
88d8f9c to
9c1ef9e
Compare
|
thx for the improvements. @klees is this ready for the coordinators to take a look at? |
|
thx a lot!
Thx a lot |
9c1ef9e to
d4fe87c
Compare
|
✔️ Resolved merge conflicts |
|
Hi @catenglaender Best, |
|
Thanks for your input! Very much appreciated. Alright, this one is good to go then :) |
thx a lot! (cherry picked from commit 85ff577)


Issue
DataTable and OrderingTable UI Component did not pass W3C Validator.
Changes
I went on a mysterious journey into the depth of W3C and MDN 🧙♂️
There is a bug in the W3C validator: If you use
aria-colindexon<td>, everything explodes with very unhelpful errors for the table header. The actual problem was that you can't havearia-colindexon<td>if you also have it on<th>, but none of the errors said that. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-colindexFurthermore many, many roles are not necessary and even discouraged on
<table>,<tr>and<td>in adisplay: table;context, so I simplified some tags. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/table_rolearia-colindexandaria-colcountand the colspan for the multi select footer were calculated incorrectly asaria-colindexstarts counting with 1 and doesn't allow 0.The logic is a bit hacky, as the OrderingTable uses the same column for multi-select and the drag and drop handle.
Input/Viewcontrol Fieldselection had a button in an
<ul>not wrapped in<li>.Not quite done
I will do the Unit Tests after code review, when we are sure the html structure will not change.
The Kitchen Sink page of the Ordering Table still fails to pass because something is not right with the UI form input select-field-input setting selected twice. That's another issue though.