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

role switch should have additional attribute aria-valuetext #574

Closed
stes-acc opened this issue Apr 26, 2017 · 2 comments
Closed

role switch should have additional attribute aria-valuetext #574

stes-acc opened this issue Apr 26, 2017 · 2 comments
Assignees
Labels
feature may add new concept(s) to ARIA which will require implementations or APG changes
Milestone

Comments

@stes-acc
Copy link

stes-acc commented Apr 26, 2017

The values on/off are not sufficient for role switch since often on switches are two text items that have the character of "labels" ("red" and "green" for instance) that stand for two discrete "values".

We need an additional aria-valuetext attribute (like aria-valuetext for slider) that reflects this in string format. Declaration of this attribute can add to the default on/off announcement or replaces it entirely, if declared.
Of course the text value must be updated on state changes.

Additional labelling using aria-label and/or aria-labelledby should still be possible, also aria-describedby.

You cannot use aria-labelledby for this additional value text since screen readers typically poll only for toggle change events of object type boolean, accessing changed labels is additional workload typically not done. For this they should additionally listen to control value changes if it comes to switch role.
This requires that switch role also supports a value pattern. State changes must be mapped as changed control values with content=valuetext in respective valuechange events of the user agent.

@stes-acc stes-acc changed the title role switch should have two additional attributes aria-checkedontext and aria-checkedofftext role switch should have additional attribute aria-valuetext Apr 27, 2017
@jnurthen jnurthen added this to the ARIA 1.3 milestone Sep 30, 2019
@jnurthen jnurthen added this to Needs triage in Attribute Parity Triage Nov 13, 2019
@stes-acc stes-acc self-assigned this Sep 17, 2020
@spectranaut spectranaut added this to Stefan in ARIA 1.3 Jun 7, 2022
@spectranaut spectranaut added the feature may add new concept(s) to ARIA which will require implementations or APG changes label Sep 12, 2022
@spectranaut
Copy link
Contributor

closing as duplicate of more recent issue: #2085

Attribute Parity Triage automation moved this from Needs triage to Closed May 30, 2024
@spectranaut
Copy link
Contributor

closed during issue triage in this meeting: https://www.w3.org/2024/05/30-aria-minutes.html#t08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature may add new concept(s) to ARIA which will require implementations or APG changes
Projects
ARIA 1.3
Stefan
Development

No branches or pull requests

3 participants