Skip to content

Add overscroll features (Resolves #1957) #2075

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

Merged
merged 2 commits into from
Jul 27, 2020

Conversation

wadefletch
Copy link
Contributor

@wadefletch wadefletch commented Jul 25, 2020

Hi everyone!

This PR adds a set of tailwind classes for the overscroll-behavior css class. It's a relatively new addition (early this year), but it's supported in all major browsers except Safari (77.55% of all users). This closes issue #1957 and uses the classes created by @MarcelloTheArcane.

Example Use

<body class='overscroll-x-none'>
    <p>Overscroll example</p>
</body>

This is my first contribution to Tailwind and I believe I added tests correctly (I modeled them after what's used for the overflow plugin) but please correct me if they're incorrect. I'm also unsure the process for adding new features to the docs, though I'd be happy to contribute there as well.

@MarcelloTheArcane
Copy link

Nice one!

@adamwathan adamwathan merged commit 9b21133 into tailwindlabs:master Jul 27, 2020
@adamwathan
Copy link
Member

Looks great, thanks!

@adamwathan
Copy link
Member

Docs PR would definitely be welcome as well, over at tailwindlabs/tailwindcss.com.

@wadefletch
Copy link
Contributor Author

@adamwathan Is all that's required in the docs PR adding an overflow.blade.md to /source/docs/ in the docs repo?

@ajitbohra
Copy link

@wadefletch

  1. Adding doc to source/docs
  2. Adding item to the navigation https://github.com/tailwindlabs/tailwindcss.com/blob/master/navigation.php

@leevigraham
Copy link

Nice.

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.

5 participants