-
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
Post Editor: top-align Publish row in the post panel #53573
Conversation
Warning: Type of PR label error To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. |
Size Change: +2 B (0%) Total Size: 1.5 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.
I'm about out for the day, but thanks for the PR! This looks right to me.
This PR is based on this comment
What?
This PR top-aligns the Publish row in the post sidebar.
Why?
In #53243, the row showing the sync state of the block pattern is now top-aligned. This PR may not be ideal, but I think that for rows that may wrap, the post date row should be aligned on top as well as the URL row and the sync row.
How?
Apply
align-items: start
to the row. At the same time, the height of the toggle button to change the post date has been changed toauto
. There is a 6px padding above and below this button, but if the height is fixed at 36px, the text will intervene in the padding area and not be aligned at the correct height.This would make this button slightly taller than before. However, I find this acceptable, since the same is true for the URL button with
height:auto
specified.Testing Instructions