You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit improves the accessibility of the Checkbox component. The aria-describedby attribute of the checkbox now includes the id of the checkbox label, providing more context for screen readers.
Changes include:
Updated test in checkbox.test.tsx to verify that the aria-describedby attribute includes the checkbox label id.
In checkboxStandAlone.tsx, added a new id for the checkbox label and included this id in the aria-describedby attribute.
Updated buildAriaDescribedBy function in aria.utils.ts to include the checkbox label id in the aria-describedby attribute when a label is provided.
These changes help screen readers provide more context to users about the checkbox, improving overall accessibility.
0 commit comments