Skip to content

Feature/remove body scroll lock - #453

Draft
Illawind wants to merge 3 commits into
mainfrom
feature/remove-body-scroll-lock
Draft

Feature/remove body scroll lock#453
Illawind wants to merge 3 commits into
mainfrom
feature/remove-body-scroll-lock

Conversation

@Illawind

Copy link
Copy Markdown
Contributor

No description provided.

@Illawind Illawind self-assigned this Sep 11, 2025
@Illawind Illawind linked an issue Sep 11, 2025 that may be closed by this pull request
@manuelodelain

Copy link
Copy Markdown
Member

Thanks @Illawind ! Did you test the use cases covered by body-scoll-lock? cf https://www.npmjs.com/package/body-scroll-lock
Can you make some stories / examples for testing the feature?

@manuelodelain

manuelodelain commented Sep 11, 2025

Copy link
Copy Markdown
Member

should we use scrollbar-gutter: stable;? instead of JS defined CSS var for keeping the scroll bar space

@Illawind

Copy link
Copy Markdown
Contributor Author

should we use scrollbar-gutter: stable;? instead of JS defined CSS var for keeping the scroll bar space

it doesn't work with "overflow:hidden" so we have a glitch for some case

@manuelodelain

Copy link
Copy Markdown
Member

Maybe we will drop the scroll lock feature in favor of the CSS overscroll-behavior property.
whatwg/html#7732 (comment)
https://ishadeed.com/article/prevent-scroll-chaining-overscroll-behavior/
willmcpo/body-scroll-lock#257

@manuelodelain
manuelodelain marked this pull request as draft December 8, 2025 12:57
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.

Remove body-scroll-lock

2 participants