-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Replace tap-targets
with target-size
rule from Axe and put under Accessibility, not SEO
#12345
Comments
I think both the a11y tests and SEO tests check for this. @connorjclark let me know if I'm mistaken. |
Interestingly I don't see any discussion in the |
oh interesting. I guess that answers it then :D |
Not sure what/who "axe" is; all I know is that from a common-sense POV, having inappropriately-sized (too small) tap targets is a literal example of something on a site not being sufficiently accessible for coarse pointers (aka "fingers"). It has nothing whatsoever to do with Search Engine Optimization (unless you consider SEO issues to be the things for which Google might penalizes a site in their rankings). ¯\_(ツ)_/¯ |
@brendankenny do search engines rank pages based on tap target size, or was that just a general recommendation? |
I don't have any more information than anyone else with access to a search engine, but at least at the time tap targets was being added to Lighthouse, that was the advice from Google. See Finding more mobile-friendly search results and the linked guides. Discussion way back in #4358 and #5846. @proimage I do agree that tap target size is an accessibility issue--ensuring usable tap targets are exactly why it's part of the "mobile friendly" section--I was just explaining why it's not part of the (capital-A) Accessibility category in Lighthouse. Moving it there may be the right thing to do, but I'd like to have a discussion with the axe folks first about if there's a reason they haven't tackled this before. |
Ok, well as this is hardly a mission-critical issue, I'll leave it in y'all's more than capable hands. I was just pointing it out. :) |
Axe is working on a rule for target spacing here: dequelabs/axe-core#2652 I'll compare the results between our two implementations. In the meantime, we are going to hold off on adding this to the a11y category because we think it's valuable to keep the that code vetted by a11y experts ala axe. |
I've read WCAG wrt target spacing, and found a few areas we may wish to fix in BTW, the relevant WCAG guidelines: WCAG 2.1 https://www.w3.org/TR/WCAG22/#target-size-enhanced
WCAG 2.2 (draft) adds
OK, so here are some notes on where we differ.
WCAG suggests 44px as the threshold, but we (and Google at large) suggest 48px. I've reached out to internal peeps about why / possibly changing this
We don't do this... but we do something similar: we ignore overlapping elements if they are the same link.
Should be good here, but the comments suggest there are gaps in the implementation.
(note: author here means website providing their own CSS. user can modify their browser UA to have smaller inputs and still comply) We don't consider this at all.
Nothing we could do here.
This is most of the same above, except for a smaller (read: easier to meet) threshold. We could consider scaling the score accordingly based on making the 24px min but not the 44px min. |
ah. and 4 days ago a new PR just went up: feat(new-rule): Add WCAG 2.2 target-size rule by WilcoFiers · #3616 · dequelabs/axe-core |
We can use the axe impl: https://github.com/dequelabs/axe-core/blob/develop/lib/checks/mobile/target-size-evaluate.js |
Next action: Look at HTTPA for differences between our current cc @jazyan |
Sorry for jumping in, but has there been any new information about this? Our team is struggling to decide whether to follow WCAG 2.2 SC 2.5.8 or Google's stricter tap target size recommendation for SEO. We're gravitating towards complying with WCAG since it's a formal, documented standard for web accessibility. We don't see any reason any search engine should penalize an interface that is deemed accessible by WCAG standard, but we would like to make sure whether doing so actually harms our SEO performance as the Lighthouse audit suggests. |
tap-targets
with target-size
rule from Axe and put under Accessibility, not SEO
Describe the bug
The "Tap targets are not sized appropriately" metric should be under Accessibility, not SEO.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected to find "Tap targets are not sized appropriately" categorized as an Accessibility metric, not an SEO one.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: