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
The Checkbox should have the aria-checked attribute showing the boolean state that is provided for the Checkbox. I cannot see any reason why this is not implemented by default.
Examples
No response
Motivation
No response
Search keywords: aria-checked checkbox
The text was updated successfully, but these errors were encountered:
Hi @ata1704, thanks for getting involved. The Checkbox component uses an <input type="checkbox"> element under the hood, so there's no need to use aria-checked since it already has built in semantics. We try to follow the first rule of ARIA whenever possible:
If you can use a native HTML element [HTML51] or attribute with the semantics and behavior you require already built in, instead of re-purposing an element and adding an ARIA role, state or property to make it accessible, then do so.
Summary
The Checkbox should have the aria-checked attribute showing the boolean state that is provided for the Checkbox. I cannot see any reason why this is not implemented by default.
Examples
No response
Motivation
No response
Search keywords: aria-checked checkbox
The text was updated successfully, but these errors were encountered: