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 labels to elements in form to improve accessibility #139

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LeoAndTheTree
Copy link
Collaborator

@LeoAndTheTree LeoAndTheTree commented Sep 10, 2021

Resolves #132

After locating the django template for generic form instances, a generic label is created for each form element to increase accessibility.

We observe an improvement of lighthouse score from 85 to 89
Screen Shot 2021-09-09 at 8 27 27 PM

This implementation is similar to pull request #59. However, the solution in #59 uses a self-defined label whereas this implementation uses the default field.label_tag method. This implementation is more modularized and defers the work of creating labels when the table elements are generated.

@LeoAndTheTree
Copy link
Collaborator Author

I would also argue that this is better because it is shorter.

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.

Form elements do not have associated labels for event subscriptions page
1 participant