Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Support Checkbox selection by label without passed id #4067

Merged
merged 7 commits into from
Mar 20, 2024
Merged

Conversation

cm9361
Copy link
Contributor

@cm9361 cm9361 commented Mar 19, 2024

Summary

What was changed:
The Terra Form Checkbox was updated to generate the necessary id, when not passed as a prop, so that the ability to toggle the input field via the label would work in that scenario.

Why it was changed:
The change was made to ensure that the label could be used to toggle the input field (checkbox) in all scenarios.

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

N/A

This PR resolves:

UXPLATFORM-10317


Thank you for contributing to Terra.
@cerner/terra

@cm9361 cm9361 requested a review from a team as a code owner March 19, 2024 21:57
@github-actions github-actions bot temporarily deployed to preview-pr-4067 March 19, 2024 21:58 Destroyed
@chrismichalewicz
Copy link

Functionally reviewed, looks good @cm9361

@cm9361
Copy link
Contributor Author

cm9361 commented Mar 20, 2024

I also received approval from @mjpalazzo from the Accessibility Review so I will merge the functionality.

@cm9361 cm9361 merged commit c45bef2 into main Mar 20, 2024
22 checks passed
@cm9361 cm9361 deleted the checkbox-without-id branch March 20, 2024 14:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants