Skip to content

fix: Improve form accessibility: add explicit id/for associations to inputs#4

Merged
tompscanlan merged 2 commits intoOpenMeet-Team:mainfrom
majiayu000:fix-2-improve-form-accessibility-add-explicit-
Dec 28, 2025
Merged

fix: Improve form accessibility: add explicit id/for associations to inputs#4
tompscanlan merged 2 commits intoOpenMeet-Team:mainfrom
majiayu000:fix-2-improve-form-accessibility-add-explicit-

Conversation

@majiayu000
Copy link
Contributor

Summary

This PR fixes #2

Changes

  • internal/templates/create_survey.templ
  • internal/templates/my_data.templ
  • internal/templates/share.templ

- Add for="ai-consent" to consent checkbox label in create_survey.templ
- Add for="example-select" to example selector label in create_survey.templ
- Add id="share-url-short" and for attribute to share link label in share.templ
- Add id="share-url-aturi" and for attribute to ATProto URI label in share.templ
- Add aria-label to select-all checkbox in my_data.templ
- Add aria-label to individual record checkboxes in my_data.templ

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: majiayu000 <1835304752@qq.com>
@tompscanlan
Copy link
Contributor

Looks like I didn't finish setting up github. Ignore the build failure, I'm looking into it.

Copy link
Contributor

@tompscanlan tompscanlan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! These changes look good to me, but
I'm still seeing the following:
image

which I think indicates we still need a change to the survey_form. Can you do the same there?

Add explicit id attributes to radio, checkbox, and textarea inputs
in survey_form.templ, with corresponding for attributes on their
labels. This improves form accessibility by creating proper
label-input associations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@majiayu000
Copy link
Contributor Author

Done! Added id/for associations to survey_form.templ as well.

@tompscanlan tompscanlan merged commit ca8f6a1 into OpenMeet-Team:main Dec 28, 2025
3 checks passed
@majiayu000 majiayu000 deleted the fix-2-improve-form-accessibility-add-explicit- branch December 28, 2025 13:00
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.

Improve form accessibility: add explicit id/for associations to inputs

2 participants