openlibhums / janeway

A web-based platform for publishing journals, preprints, conference proceedings, and books
https://janeway.systems/
GNU Affero General Public License v3.0
172 stars 65 forks source link

All themes contact forms A11y updates #4268

Open StephDriver opened 4 months ago

StephDriver commented 4 months ago

The contact us form is the only part of the front end which requires user input. It does not currently comply with WCAG 3.3 Input Assistance., among other areas of WCAG.

Non-exhaustive list of issues found so far:

Note: the Clean contact form works well with voiceover, but doesn't indicate required fields visually (does tell the screen reader!).

StephDriver commented 4 months ago

the bracketed email address to evade scraping is awkward when read aloud by screen reader - consider how to handle that. without putting the email address into the HTML.

This is user content.

StephDriver commented 4 months ago

Need to fix Clean theme, others fix if easy, if not create new issue for later.

i.e. fix: Clean Invalid entries are not reported to the user (try entering random text in the email field, it doesn't react). They are reported to the screen reader user, but only if they navigate back having left the item. They are reported on landing, not on exiting.

StephDriver commented 3 weeks ago

Following discussion I am retesting these and reviewing the changes required.

Material

could this be solved by putting the error fixing messages into a sibling of the input, and using something like input:invalid ~ .error-fix in the css to show/hide the error fixing messages?

StephDriver commented 3 weeks ago

this may be useful: https://design-system.service.gov.uk/patterns/validation/