Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is activating a tri-state toggle limited to toggling between aria-pressed=false and aria-pressed=true? #684

Closed
mcking65 opened this issue Dec 14, 2017 · 3 comments
Assignees
Labels
editorial a change to an example, note, spelling, grammar, or is related to publishing or the repo
Milestone

Comments

@mcking65
Copy link
Contributor

The aria-pressed spec
includes the following language:

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].

This text implies that activating a tri-state toggle cannot result in aria-pressed="mixed". Is this an intentional restriction?

We do not have such a limitation on the tri-state checkbox, which in some implementations, remembers the configuration of its most recent mixed state as demonstrated in the
APG tri-state checkbox example.

I do not see a reason for preventing tri-state toggles from having this mixed state activation feature of tri-state checkboxes. If there is no reason for such a limitation, I will propose alternative text.

@joanmarie joanmarie assigned joanmarie and unassigned joanmarie Jan 18, 2018
@mcking65 mcking65 self-assigned this Jan 18, 2018
@joanmarie joanmarie added the editorial a change to an example, note, spelling, grammar, or is related to publishing or the repo label Jan 18, 2018
@mcking65 mcking65 added this to the ARIA 1.2 milestone Aug 8, 2018
@jnurthen jnurthen modified the milestones: ARIA 1.2, ARIA 1.3 Nov 19, 2019
@jnurthen
Copy link
Member

jnurthen commented Nov 20, 2019

The text "Examples of mixed-state buttons are described in WAI-ARIA Authoring Practices [WAI-ARIA-PRACTICES-1.1]." does not seem to be true and should be removed.

@jnurthen
Copy link
Member

jnurthen commented Nov 20, 2019

In windows an indeterminate toggle button has the same visual state as an unpressed toggle button
https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.primitives.togglebutton

MacOS allows a mixed state button but seems to discourage its usage
https://developer.apple.com/documentation/appkit/nsbutton?language=objc

@jnurthen
Copy link
Member

jnurthen commented Jun 6, 2024

closing as insufficient need.

@jnurthen jnurthen closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial a change to an example, note, spelling, grammar, or is related to publishing or the repo
Projects
None yet
Development

No branches or pull requests

4 participants