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

2.5.8: Are all slider variants excluded or only sliders that look and are operated like sliders #2713

Closed
JAWS-test opened this issue Oct 6, 2022 · 12 comments · Fixed by #2718

Comments

@JAWS-test
Copy link

Please look at:

https://www.w3.org/WAI/ARIA/apg/example-index/slider/slider-rating.html

You can see 5 rating stars, which can be activated individually (in fact, even half stars can be activated, although this is not immediately obvious). Looking at it, I would assume that the stars have to be checked for the correct target size according to 2.5.8.

However, looking at the source code, I see that it is a slider and that this is considered as one control in 2.5.8.

Now the question: Does the exception apply to all visual sliders or to all programmatic sliders or to both variants?

And what is meant by "granular values"? Are there sliders without granular values? Which ones? Or is that supposed to describe that every slider has granular values?

@patrickhlauke
Copy link
Member

i'm assuming that is awkwardly meant by a slider with "granular values" is a slider that can be freely moved and doesn't "snap" to specific points. i.e. potentially every single pixel position on the slider is a value, so it would be impossible to mandate that each of those is large enough.

in contrast, the APG example there, regardless of being a slider under the hood, effectively has 10 "areas"/targets (a zone for the half, and one for the full star, on each of the 5 stars). as such, I'd consider that as not being exempt, as it IS quite feasible to make sure the stars are large enough so that their two zones each have a sufficient size.

@JAWS-test
Copy link
Author

Thank you, @patrickhlauke
If this opinion is shared by others, I would appreciate a addition in the Understanding to avoid misunderstandings

patrickhlauke added a commit that referenced this issue Oct 9, 2022
the current "sliders with granular values" seems to be causing some confusion. the more common term for these is "continuous sliders"

Closes #2713
@fstrr fstrr added the WCAG 2.2 label Oct 25, 2022
@bruce-usab
Copy link
Contributor

If this opinion is shared by others, I would appreciate a addition in the Understanding to avoid misunderstandings

I think we can survey and then close this issue. Or update Understanding and then close.

@patrickhlauke
Copy link
Member

there is a tentative PR change #2718

@bruce-usab
Copy link
Contributor

Ready for Survey tag might be premature, since it would be nice to knit up all proposed changes for Understanding.

My recent thinking is that since 2.5.1 mentions "path-based gestures" that covers sliders. 2.5.7 Understanding can then be more about classic drag-and-drop style UI.

@bruce-usab bruce-usab changed the title 2.5.8: Are all slider variants excluded or only sliders that look and are operated like sliders 2.5.7: Are all slider variants excluded or only sliders that look and are operated like sliders Nov 7, 2022
@bruce-usab bruce-usab changed the title 2.5.7: Are all slider variants excluded or only sliders that look and are operated like sliders 2.5.8: Are all slider variants excluded or only sliders that look and are operated like sliders Nov 7, 2022
@GreggVan
Copy link

GreggVan commented Nov 7, 2022 via email

@alastc
Copy link
Contributor

alastc commented Nov 23, 2022

Some confusion on the conversation yesterday (and probably need Wilco to be involved to check is solves the problem raised). So will re-up it later.

@bruce-usab
Copy link
Contributor

I think sliders are pretty much the same as scroll bars. If that is correct, then we do not need to give them any special treatment, let alone try and figure if some are emulating analog movement.

One difference is that some click-and-drag sliders/scrub controls don't do anything with a click/select along the axis of movement — so that is something to look out for with regard to 2.5.7 Dragging Movement. This sort of restricted functionality might not fail other SC (if there is a keyboard equivalent) so it is a good example for Understanding.

The Understanding for 2.5.1 Pointer Gestures will need some tweaking one we have 2.5.7, but I think it does cover sliders/scrub controls well enough (without 2.5.7 (emphasis added):

All functionality that uses multipoint or path-based gestures for operation can be operated with a single pointer without a path-based gesture, unless a multipoint or path-based gesture is essential.

Scrollbars (and everything similar) are using a path-based gestures! The gesture is limited to a horizontal or vertical axial line. (This also means 2.5.1 covers "swipes".) These UI are path-based and similar to the 2.1.1 exception for "underlying function requires input that depends on the path of the user's movement". Of course 2.1.1 was written for movement in two axis, but the principle is the same. A "scrub" UI typically needs finer control / better resolution than a scroll bar, but I think is okay for WCAG to treat them the same.

@JAWS-test
Copy link
Author

@bruce-usab You probably wanted to post your comment at another issue, because this is about 2.5.8 = target size - and nothing else

@bruce-usab
Copy link
Contributor

@JAWS-test – I was OT earlier (hence my thrashing on the labels) but my reply above is in the right place.

Yes, 2.5.8 is target size — and I do not think sliders are a special case (because they are a kind of scroll bar).

My comment about sliders being path-based is something I posted to this issue because I was replying to @GreggVan comment.

@GreggVan
Copy link

GreggVan commented Nov 27, 2022 via email

@JAWS-test
Copy link
Author

@GreggVan and @bruce-usab: Can you please open a new issue for your discussion on 2.5.1 and 2.5.7 or use an issue where these two SCs are already discussed. This is a different issue that I opened and has nothing to do with your discussion. Thanks!

michael-n-cooper pushed a commit that referenced this issue Jan 25, 2023
commit 0b716fa
Author: Alastair Campbell <ac@alastc.com>
Date:   Wed Jan 25 16:12:40 2023 +0000

    Aligning compatibility statement

commit 4256741
Merge: 29c51d7 b584d92
Author: Alastair Campbell <ac@alastc.com>
Date:   Tue Jan 24 17:21:11 2023 +0000

    Merge pull request #2718 from w3c/patrickhlauke-issue2713

    Tweak explanation of sliders in 2.5.8 Target Size (Minimum) note

commit b584d92
Author: Patrick H. Lauke <redux@splintered.co.uk>
Date:   Wed Nov 23 07:59:12 2022 +0000

    Reintroduce sliders, but simplified

    As the main problem with the original wording was the "granular" aspect, and Wilco suggested excluding sliders altogether so as not to have to define when a slider does or doesn't count as being "granular" enough, this just mentions and excepts all types of sliders

commit e72f40d
Author: Alastair Campbell <ac@alastc.com>
Date:   Tue Nov 22 17:44:59 2022 +0000

    Update from meeting

    Thought best to remove sliders...

commit 86d4107
Author: Alastair Campbell <ac@alastc.com>
Date:   Thu Nov 10 17:10:21 2022 +0000

    removed 'very'

    Just don't want discussions about the difference between granular and very granular...

commit 9c9eba2
Author: Patrick H. Lauke <redux@splintered.co.uk>
Date:   Sun Oct 9 11:38:45 2022 +0100

    Tweak explanation of sliders in understanding 2.5.8 note

    the current "sliders with granular values" seems to be causing some confusion. the more common term for these is "continuous sliders"

    Closes #2713
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment