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

Add scroll-behavior utilities #5388

Merged
merged 1 commit into from
Sep 11, 2021

Conversation

lukewarlow
Copy link
Contributor

This PR adds utilities for the scroll-behavior property.

I would recommend pushing people towards using this property responsibly in combination with the motion-safe variant. I don't believe we have to manually enable variants for plugins anymore but if we do let me know and I'll add motion-safe and motion-reduce to the defaults.

@lukewarlow
Copy link
Contributor Author

I think tailwind generally only adds utilities for CSS with support in all three browsers. So if this does wait for Safari to unflag its support, here's it in plugin form: https://github.com/lukewarlow/tailwind-scroll-behavior

@adamwathan
Copy link
Member

Looks good, thanks @lukewarlow! ❤️

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.

None yet

2 participants