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

Labels are not correctly associated with some form inputs #13133

Open
krisztin opened this issue Feb 8, 2025 · 0 comments
Open

Labels are not correctly associated with some form inputs #13133

krisztin opened this issue Feb 8, 2025 · 0 comments
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround.

Comments

@krisztin
Copy link
Contributor

krisztin commented Feb 8, 2025

Description

Some inputs/fields are not correctly associated with a label which means users with screen readers have no idea what they are.

Accessibility info

These inputs fail WCAG Success Criterion:
1.3.1 Info and Relationships
4.1.2 Name, Role, Value

Expected Behavior

When a user with a screen reader tabs into an input, they should hear its proper label that makes it clear what the purpose of that input/field is.

Actual Behaviour

Fields (if accessible by tabbing through the form at all, which is another issue I'm prepping 😬️) do not give any usable info to screen readers.

Steps to Reproduce

/admin/orders have a couple of unlabelled inputs (labels missing for attributes):

  • Date range
  • Status
  • Shipping method
  • Distributors
  • Order cycles

Testing tools you can use

  1. Steeper learning curve, interesting insight - Screen readers
    System ones are OK:
  • Ubuntu - screen reader under the Accessibility settings
  • Mac - Voiceover
  • Windows - Narrator

More robust and free:

OR

  1. Less involved, still interesting - ANDI, a handy script created by the US Social Security Administration. Perfect for quick tests. ANDI output shows you what screen readers will "say" to users (see below under screenshots)

OR

  1. Programmatically check that all inputs have a correct label for= assigned to their ids

Screenshots

An empty output giving users no information:
Image

Correct ANDI output with "Search Order number"
Image

Severity

bug-s2/s3 - for users with screen readers

Possible Fix

Update all labels with nil values to associate with their respective input's ids. From a cursory look there are 68 label_tag nils

@github-project-automation github-project-automation bot moved this to All the things 💤 in OFN Delivery board Feb 8, 2025
@sigmundpetersen sigmundpetersen added the bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround.
Projects
Status: All the things 💤
Development

No branches or pull requests

2 participants