-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 the Publish region position and focus style. #48102
Fix the Publish region position and focus style. #48102
Conversation
Size Change: +269 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in dbc55f4. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4185680376
|
Thanks for opening the PR @afercia For the part about the sidebar panel position (the top: auto), I was actually aware of it, but my thinking was that it's the same region, same sidebar, it doesn't matter whether the sidebar is "full" or not, we can always show it in the same way (a sidebar from top to bottom) which would prevent us from adding this logic (extra classes...) to adapt the design. So personally, I don't feel strongly that the buttons should necessarily be at the bottom right but I don't mind it either. |
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.
The fix is good, I'd have just kept the same position personally but this is fine as well.
That's an interesting idea @youknowriad. Showing the sidebar always full height could be a better option also for accessibility, as it would be more visible and intuitive. However, for consistency, we should change it in both the post editor and site editor, also for the 'settings' sidebar. I will create a new issue for consideration. The current situation on trunk is a bit inconsistent: |
I just cherry-picked this PR to the wp/6.2 branch to get it included in the next release: d926743 |
Fixes #48031
What?
This PR seeks to fix regressions after #47734. (and maybe also #47142) where the position of the Publish/Save panel is off when navigating through the editor regions.
#47734 fixed the position of the multi-entity save panel but broke the position of the Publish/Save panel when navigating through the editor regions.
It would be great to include this fix in the WP beta, as it fixes a regression. Cc @youknowriad
Why?
Layout and focus style are off, see screenshots on #48031
How?
top
position toauto
.top
position to0
only when the multi-entity save panel is rendered.Testing Instructions
Post editor:
Site editor:
Testing Instructions for Keyboard
See above.
Screenshots or screencast