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

fix(radio): set aria-required on radio group element instead of individual radios #597

Merged
merged 3 commits into from
May 31, 2024

Conversation

samrichardsontylertech
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added/updated: Y
  • Docs have been added/updated: N
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? N

Describe the new behavior?

A radio no longer sets aria-required on itself. Instead, when the state of required changes the required status of each radio in the group is evaluated and aria-required set on the closest fieldset, element with role=radiogroup, or forge-radio-group. The Forge radio group component attempts the same logic when it's added to the DOM.

@samrichardsontylertech samrichardsontylertech added patch Increment the patch version when merged skip-release Preserve the current version when merged @next accessibility labels May 30, 2024
@samrichardsontylertech samrichardsontylertech requested a review from a team as a code owner May 30, 2024 21:10
Copy link

stackblitz bot commented May 30, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@samrichardsontylertech samrichardsontylertech merged commit e3f76ba into next May 31, 2024
6 checks passed
@samrichardsontylertech samrichardsontylertech deleted the fix/radio-required branch May 31, 2024 13:26
Copy link
Contributor

github-actions bot commented Jun 6, 2024

🚀 PR was released in v3.0.0-next.30 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility @next patch Increment the patch version when merged prerelease This change relates to a prerelease. skip-release Preserve the current version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants