-
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
Remove relative position from sidebar tabpanel #66267
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. |
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.
Thank you for the quick fix!
✅ The pattern category flyout is displayed correctly again
✅ The scrollbar issue when searching for blocks is not present
✅ Working correctly in both the post and site editors
LGTM! 🚀
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.
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.
LGTM 🚀
✅ No double scrollbars
✅ Patterns are back
✅ Media tab works as expected
Screen.Recording.2024-10-21.at.10.22.15.am.mp4
Size Change: -6 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: d2efcdc |
Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
What?
Fixes pattern preview display in the sidebar:
tabpanelscroll.mp4
Removes a
position: relative
introduced in #66229 that isn't strictly needed to fix the bug that PR addresses.The original issue was caused by a
VisuallyHidden
component attached to the search bar in the panel header. That is fixed by theposition: relative
added to the header component. Addingposition: relative
to the tabpanel itself interferes with the pattern preview slideout sections, which are positioned relatively to the canvas.As @talldan mentioned in the previous PR, it might be worth looking into fixing this in
VisuallyHidden
itself, but this close to RC1 it's best to aim for the smallest possible fix 😅Thanks to @ramonjd for locating the line responsible for the breakage!
Testing Instructions