Open castilloandres opened 5 years ago
Thanks for filing @castilloandres!
A few notes:
We'll definitely take the within fixed/sticky elements improvement into consideration for future work though!
Thanks for the detailed explanation @patrickhulce !! 👍
Provide the steps to reproduce
What is the current behavior?
prestonfield.com is passing the tap targets audit.
What is the expected behavior?
prestonfield.com should fail the the tap targets audit. Buttons and links inside sticky elements seem to not be considered and analyzed.
For context: Tap targets should be at least 48 x 48 pixels in width and height and 8 pixels between them on all sides.
Overlapping tap targets and too small pair in top sticky bar:
Overlapping tap targets and too small pair in bottom sticky bar:
If I am not wrong, looking at the code I think these tap targets get discarded here: https://github.com/GoogleChrome/lighthouse/blob/43896afb37785c9cb9a9a3bd88e8841d8e729d15/lighthouse-core/gather/gatherers/seo/tap-targets.js#L183
Environment Information