-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix extra scrollbar when a popover extends past the viewport. #62894
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -5 B (0%) Total Size: 1.76 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly tests well for me, but I noticed there are some issues scrolling in code editor mode and in the widget editor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests well for me. It fixes the grid block issue, the earlier issues is resolved, and I'm still seeing scrollbars working in places like focus mode, widget editor, code editor mode, style book, the various post editor modes.
Flaky tests detected in 81c8f6b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9691034490
|
Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org> Co-authored-by: talldan <talldanwp@git.wordpress.org>
I just cherry-picked this PR to the wp/6.6 branch to get it included in the next release: e238081 |
Nice! |
What?
When an active popover inside
interface-skeleton__content
extends vertically past the viewport, an extra scrollbar appears on trunk. This can be reproduced with the following steps:The overflow rule being changed here has been around for a long time so I want to make sure this change doesn't break anything else 😅
My testing shows everything working correctly: both editor canvas and sidebar are still scrollable and look as expected. I think the overflow may have been set to auto to unset its default
visible
, because when setting it tovisible
things do look a bit funny. If that's the extent of what the overflow is doing, this change should be safe enough.Before:
After: