Skip to content

Conversation

yordan-st
Copy link
Contributor

Pull request type

Bug fix (non-breaking change which fixes an issue)


Description

  • We added a missing validation alert, so users get notified when the haven't provided the required input.

What should be covered while testing?

  • Test this for radio buttons (single select) as well as checkboxes (multi select)

@gjulivan
Copy link
Collaborator

gjulivan commented Oct 2, 2025

adjust with #1905

@yordan-st yordan-st force-pushed the fix/WC-3114_CheckboxRadio-validation branch from b28f651 to 4c40b40 Compare October 3, 2025 13:18
@yordan-st yordan-st force-pushed the fix/WC-3114_CheckboxRadio-validation branch from 86d2e6c to e229a45 Compare October 3, 2025 13:51
disabled={isReadOnly}
tabIndex={tabIndex}
onChange={e => handleChange(optionId, e.target.checked)}
aria-describedby={selector.validation ? errorId : undefined}
Copy link
Collaborator

Choose a reason for hiding this comment

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

difference with combobox,
i think aria-describeby and aria-invalid should be on the component with radiogroup role. not on each input.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/radiogroup_role

@HedwigAR please confirm.

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