role switch
suggest changeA type of checkbox that represents on/off values, as opposed to checked/unchecked values.
<button type="button" role="switch" aria-checked="false">Notifications</button>
Do not put role="switch" on a <select>. A switch is a checkable on/off control, like a checkbox. The aria-checked value must be true or false.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents