-
Notifications
You must be signed in to change notification settings - Fork 492
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
Initial ADA check: Primeface hidden checkboxes fail compatibility #2634
Comments
Related to Edit File Metadata: Select All Files in Tab, Can't Edit Them All after clicking Edit Metadata #2859, as well as to File Download: Changing the list of selected files for a multipage file list results in bad download all behavior. #3711. Investigate as part of Spike: Files DataTable, Selection, Paginator vs Scroll #4437. |
This should be looked into as part of Upgrade to PrimeFaces 7 #5975 as "accessibility improvements" has been outlined in the release notes. Will leave it open until the functionality can be reviewed after upgrading. |
This issue should be reviewed as part of Upgrage to PrimeFaces 8 #6634 as I saw an improvement to checkboxes in release notes for 7.0.12.
|
A note that in DV 5.1/5.2 checkboxes still appear to be inaccessible (missing labels), at least those in the facets in dataverse.xhtml. When I tested in ChromeVox no label was read when I entered the checkbox. |
Invalid HTMLI ran validator.w3.org on the harvard dataverse site: on the page resulting from clicking the "view all data" link on the homepage: The results can be seen by click this url: There are many input elements which are nested within "a" (anchor) elements. This is invalid HTML. Where is keyboard focus here: should it be on the link, the nested input? It makes no sense. Not sure what the purpose is: perhaps these are visually hidden somehow, but my screen reader shows the checkboxes as well as the It's also not clear, because of lack of page structure, semantic HTML (i.e. headings, lists, proper table markup on tabular data), what is actually being shown here. I see stuff about subjects and categories, collections, files, etc, but clicking one of these checkboxes, and/or clicking one of the links containing the cehckboxes doesn't seem to do much that is obvious to me using a screen reader. It seems to have been said already that depending on ancient software (primeFaces) is counterproductive. I would also suggest that it makes fixing accessibility issues very difficult! Thoughts on Primefaces Here is the code for one of these checkboxes from the URL cited above:
|
@RichCaloggero yes. Accessibility is something we're working hard on in the new frontend, which is being written in React: https://github.com/IQSS/dataverse-frontend (For more background on the rewrite, please see https://groups.google.com/g/dataverse-community/c/2hfhWIHQddE ) If you go to that frontend repo, you can find links to Chromatic/Storybook where you can dig into the accessibility checks, all passing in this example: |
Accessibility is much better with the new UI: https://github.com/IQSS/dataverse-frontend |
I ran a dataset page through the Web Accessibility Evaluation Tool
It flagged many errors (76) as well as alerts (43). I didn't examine them in depth but they're mostly related to standard HTML tagging practices for ADA -- may not be hard to fix.
The test indicated that Primefaces generates checkboxes that are not ADA compliant--they lack
<label...>
tags. The Primefaces checkbox HTML is described here:This is a double-sided issue:
The text was updated successfully, but these errors were encountered: