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

Fixes scroll lock layout shift #1895

Merged
merged 5 commits into from
Mar 6, 2024
Merged

Fixes scroll lock layout shift #1895

merged 5 commits into from
Mar 6, 2024

Conversation

KonnorRogers
Copy link
Collaborator

@KonnorRogers KonnorRogers commented Feb 26, 2024

Fixes #1894 , #1805

Also fixes an issue if users set body { padding: 4rem } for example it would be overwritten to padding-right: 13px also causing layout shift.

.sl-scroll-lock now lives on the top level <html> instead of on <body>

Copy link

vercel bot commented Feb 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
shoelace ✅ Ready (Inspect) Visit Preview Feb 26, 2024 5:57pm

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.

sl-dialog causes layout shift as of 2.13
2 participants