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

feat(prefight): use scroolbar-gutter: stable #8234

Closed
wants to merge 1 commit into from
Closed

feat(prefight): use scroolbar-gutter: stable #8234

wants to merge 1 commit into from

Conversation

kecrily
Copy link

@kecrily kecrily commented Apr 29, 2022

Keep the style consistent with or without scrollbars.

FRRK7XJXsAAvkiX.mp4

@adamwathan
Copy link
Member

Hey thanks for the suggestion! Going to say no to this for now just because I expect there are still situations where people may not want this, like a page that is set to 100vh in height and designed to never have scrollbars appear.

Instead I would recommend just adding this style to your HTML element yourself either with a tiny bit of CSS, or using an arbitrary property in Tailwind:

<html class="[scrollbar-gutter:stable]">
<!-- ... -->
</html>

As always not saying no forever, happy to reconsider this in the future if we can make a stronger case for including it. Thanks a lot regardless, I had never heard of this property and it was cool to learn something new!

@adamwathan adamwathan closed this May 8, 2022
@kecrily kecrily deleted the feat/prefight branch May 8, 2022 11:00
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.

2 participants