aria icon indicating copy to clipboard operation
aria copied to clipboard

Aria-pressed : Spec is unclear about the toggle button

Open shirsha opened this issue 4 years ago • 19 comments

https://www.w3.org/TR/wai-aria-1.1/#aria-pressed Currently aria-spec says : Toggle buttons require a full press-and-release cycle to change their value. Activating it once changes the value to true, and activating it another time changes the value back to false. A value of mixed means that the values of more than one item controlled by the button do not all share the same value. Examples of mixed-state buttons are described in WAI-ARIA Authoring Practices [wai-aria-practices-1.1]. If the attribute is not present, the button is not a toggle button.

There are scenarios where two buttons can be used as toggle button. In these cases it will be useful to add aria-pressed attribute to the buttons. Examples: https://tink.uk/ https://design.fusionfabric.cloud/ui-elements/button-toggle

shirsha avatar Feb 18 '21 18:02 shirsha