-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Remove relative position from sidebar tabpanel #66267
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
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. |
andrewserong
left a comment
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! 🚀
ramonjd
left a comment
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.
aaronrobertshaw
left a comment
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 <[email protected]> Co-authored-by: andrewserong <[email protected]> Co-authored-by: ramonjd <[email protected]> Co-authored-by: aaronrobertshaw <[email protected]>
|
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 <[email protected]> Co-authored-by: andrewserong <[email protected]> Co-authored-by: ramonjd <[email protected]> Co-authored-by: aaronrobertshaw <[email protected]>


What?
Fixes pattern preview display in the sidebar:
tabpanelscroll.mp4
Removes a
position: relativeintroduced in #66229 that isn't strictly needed to fix the bug that PR addresses.The original issue was caused by a
VisuallyHiddencomponent attached to the search bar in the panel header. That is fixed by theposition: relativeadded to the header component. Addingposition: relativeto 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
VisuallyHiddenitself, 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