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

add id's and htmlFor attributes to labels and inputs #2281

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

CollinBeczak
Copy link
Collaborator

Main feature improvement of this pr: Accessibility: Associating labels with form elements using htmlFor ensures that screen readers can correctly announce the label when a user interacts with the form field. This improves accessibility for users who rely on screen readers or other assistive technologies to navigate the web.

A secondary focus of this pr is to attempt to resolve some of the suggestions in warnings displayed in devtools.
Screenshot 2024-02-21 at 6 30 30 PM

Moving forward with fixing the labels and input error, the structure of mapped element needs to include a unique id whenever a form is include, and the schemas in forms, whenever using a "ui:widget: 'radio' " pattern will need to be fixed as they are causing the "Page Errors"

Example of a radio format is the yes/no option selectors in forms.
Screenshot 2024-02-21 at 7 33 36 PM

@AndrewPhilbin AndrewPhilbin merged commit f5a7047 into main Mar 8, 2024
5 checks passed
@AndrewPhilbin AndrewPhilbin deleted the ImplementLabelIds branch March 8, 2024 23:52
@CollinBeczak CollinBeczak mentioned this pull request Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants