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

core(tap-targets): exclude sticky elements from tap targets audit #7603

Merged
merged 2 commits into from
Mar 20, 2019

Conversation

mattzeunert
Copy link
Contributor

Summary

Whether sticky elements overlap depends on the current scroll position, so we should exclude them like we do with position absolute and fixed.

Related Issues/PRs

Pointed out here: #7365 (comment)

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This is <a>a link in a text block.</a>
This is <a>a link in a text block.</a>
This is <a>a link in a text block.</a>
This is <a>a link in a text block.</a>
This is <a>a link in a text block.</a>
</p>

<a style="background: #afa; top: 0; left: 0; display: block; width: 100vw; height: 800px;">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are top and left doing here? isn't this element position: static so they will have no effect?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, they're not relevant.

@brendankenny brendankenny merged commit 324b219 into master Mar 20, 2019
@brendankenny brendankenny deleted the ignore-position-sticky-for-tap-targets branch March 20, 2019 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants