Skip to content
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

FileWidget and CheckboxWidget don't have accessible field labels #6341

Open
JeffersonBledsoe opened this issue Sep 27, 2024 · 0 comments
Open
Labels

Comments

@JeffersonBledsoe
Copy link
Member

Describe the bug

The FileWidget and CheckboxWidget both have labels provided by the <FormFieldWrapper> component, however, these fields are not programatically linked to the labels, failing multiple WCAG criterion such as SC 3.3.2: Labels or Instructions (A)

This is a follow on from my comment on #6332. Related to #5139

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Edit' view on a page
  2. Using a screen reader find the 'Preview Image field' (can also use the accessibility tree to view it without a reader)
  3. Listen to the screen reader output and you will hear there isn't an input with the label of 'Preview Image Field'
  4. Do the same with the "Exclude from Navigation" checkbox

Expected behavior

  • There is a clear input field
  • There is a clear label field
  • The label field is directly associated with the input field

Software (please complete the following information):

  • OS: macOS & Linux
  • Browser: Chrome, Safari, Firefox
  • Volto Version 18.0.0-alpha.43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant