-
Notifications
You must be signed in to change notification settings - Fork 251
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
SC 2.5.8 Pointer Target Spacing - Clarification: Overlapping Spacing #1312
Comments
I think the Understanding doc addresses that:
Emphasis mine. |
Yeah, I've read that too, but with target being defined as…
https://www.w3.org/TR/WCAG22/#dfn-target … I'd assume that non-interactive spacing around that target (~margin) is not affected by this note. Thanks anyways! |
Ah. Gotcha. As you were. |
@richardbruskowski I think that your interpretation is correct. The first line is also pointing to it by saying that only the target areas can not overlap:
It does provide an incentive for smaller target sizes. The question I have, would a UX designer actually want to have such small targets? I mean, it seems obvious just by looking at it that it's not a good experience. Also, although not desirable, the user can zoom in or use a browser extension to change the size of those elements. In fact, if the browser extension with a bit of css would make the targets overlap then I would consider that a failure. Maybe worth adding this to the understanding doc. Those methods are not great but may work. Another possible solution would be to add a minimum requirement for the target area as per #1311 |
I agree @ajanec01 that such small target sizes hopefully won't be considered in reality. Here are some more realistic examples: One reason I am interested in clarifying this: I assume having gaps between menu items that are not responding to the mouse (hover as well as click) is not ideal for a mouse users' experience: It's not how native/operating system level menus behave as far as I am aware. On the other hand pushing for (context-, navigation-, select-) menus with an item height of 44px might be challenging at times, at least in applications or websites with a somewhat high information density. |
Yeah, I don't think it's desirable to have gaps, but I see it as a first step to make sure that users with dexterity impairments do not accidentally activate the adjacent component. Sc 2.5.5 pushes for the menus you mentioned to have the height of 44px but it is level AAA. |
That touches on another point, that this SC does not reference 2.5.5 at all. But I am bundling that up with other feedback. |
One more example for further clarification. The way I read the SC the following would be true: An element with a target height of 40px would fail if it sits next to another target, giving it an effective height of 40px. |
The way I interpret 2.5.8 is that both of your examples are a fail, not because of their target area (40 px) but because there is not enough space between the elements. This criterion is actually, mainly about spacing out your ui layout. Kind of like making a grid where each grid cell is at least 44px by 44px . You would need to make sure that each component has its own cell but how you position that component within the cell, i.e. bottom right, bottom left, etc., is irrelevant.
|
Actually, now that I think about it, the first sentence indicates that the gaps can not overlap.
It is not mentioned explicitly but it says what I mentioned about the grid cells so kind of excludes the overlapping of gaps. Sorry, got it wrong earlier on. It is worth highlighting it in the understanding doc. |
@ajanec01 The sentence you've quoted, that is what I've tried to visualize with that little rectangle on the left side of each stack. In my last example, when that little rectangle is green, there this criterion is met in my understanding, because even if the spacing around the targets does overlap, there is still an area with a width and height of at least 44 CSS pixels that includes only that one and no other targets. It does include the spacing around another target, but not the target itself. |
Sorry, didn't pay enough attention to illustrations- you're right @richardbruskowski! It should be addressed. |
It is my understanding that inactive spaces could overlap as these inactive spaces are not part of the target area. |
The intention was that inactive spaces should not overlap, that for the sake of measurement, you treat each target container as having a minimum height and width of 44 x 44. I guess we need to address that possible misunderstanding in the understanding document. |
I think the group needs to weigh in on the overlapping inactive spaces as that was not my understanding. |
My interpretation of this:
Is that Richard's last set of examples was correct. I.e. the spacing can count towards more than one target.
I was also under the impression that was intentional, because having that spacing helps to differentiate taps, even if it is shared spacing. |
Hi everyone, the mobile TF proposed an update which I added to this comment on 1384. It would help to keep discussion of that in one place, so I'm just cross-linking... |
Draft proposal based on latest discussion:
Related changes to the understanding document:
The requirement is for targets to have at least 24 px offset between them. The offset between targets is the size plus spacing of a target, measured from the nearest point of each adjacent target to the farthest point of the current target. For example, a target of 20 x 20px would meet the requirement if it had a spacing of 2 px on all sides. If the target is 24 x 24px or larger, no spacing between it and adjacent targets would be required.
There are four exceptions:
... ...
|
That answers the question I had. Thank you for sharing! |
Thanks @richardbruskowski, as you consider that answered I'll close this issue. |
If I read this WCAG 2.2 WD success criterion (https://www.w3.org/TR/WCAG22/#pointer-target-spacing) correctly, the spacing around pointer targets is allowed to overlap, is that right? I am thinking of sidebars and flyout/dropdown menus here, maybe worth to add as an example as well.
An unintentional side effect might be that smaller pointer targets are incentivised, when people try to achieve narrow/compact rows.
x
The text was updated successfully, but these errors were encountered: