-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[4.0] Filtered by - accessibility #27741
Conversation
In a previous pull request I added code which adds a caption to every table AND indicates how the table is sorted. To improve this further we should also include how the table is filtered. This DRAFT pr which I hope the javascript gurus can help with adds the filtered information. I have only enabled this for the table of contacts at this time while in draft Currently the output is like this <caption id="captionTable" class="sr-only"> Table of Contacts <span id="orderedBy">Sorted by:Title - descending</span> <span id="filteredBy">Filtered by:Public3</span> </caption> As you can see the filtered by is displaying just the selected value of the selected filters, which is kind of ok when its text but is meaningless when it is a number. Ideally it would say Filtered by: Access level = Public, Max Levels =3
that makes sense .-) |
Maybe someone can convince the accessibility team to test this |
Christiane helped Stefan. He knows what do do - still waiting for results (1 week). |
Closed - let the accessibility team fix it |
Extend joomla#27741 to fully implement the prototype of filtering. This can be rolled out to all components in a future PR. This is mainly to help people with the javascript implementation
Javascript here for you hopefully. It's enough to work - although as the labels seem weird right now the text could be improved. But hopefully that's enough for someone to run with |
Thanks. Will check it out over the weekend |
In a previous pull request I added code which adds a caption to every table AND indicates how the table is sorted. This is only visible to screen readers
To improve this further we should also include how the table is filtered.
This DRAFT pr which I hope the javascript gurus can help with adds the filtered information.
I have only enabled this for the table of contacts at this time while in draft
Currently the output is like this
As you can see the filtered by is displaying just the selected value of the selected filters, which is kind of ok when its text but is meaningless when it is a number.
Ideally it would say
Filtered by: Access level = Public, Max Levels =3
(as this is javascript it will require either
npm i
ornode build.js --compile-js
to test it)