-
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
Adjust widget form margins in the new widget editor #33040
Conversation
Size Change: +205 B (0%) Total Size: 1.05 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.
LGTM!
The css rule is only for input[type=text], select, what about other input text types like these.
|
Great feedback @spacedmonkey, your suggestions make sense and I included them in the PR. |
@adamziel The arrow disappears when focused when 2021 theme is active. Not an issue in different themes. |
Thanks for jumping on this. We forgot the |
* Adjust widget form margins in the new widget editor * Adjust the selector to cover more input types, change background to background-color
@spacedmonkey here's the follow-up issue to fix the missing dropdown icon: https://core.trac.wordpress.org/ticket/53560 |
Description
Fixes #32955
The widgets editor suffers from a few CSS inconsistencies, this is especially visible when changing themes.
On Twenty Twenty One
There is very little spacing between labels and form fields due to a low line-height value:
On Twenty Twenty
The spacing between form rows is quite large, this is especially visible with checkboxes:
Each checkbox is wrapped a separate
<p>
and is a subject to the same margin as all other paragraphs. I think the only generic way of solving that is setting that margin to a lower value like10px
.On both
The first input has a left padding inconsistent with other inputs and selects:
How has this been tested?
Screenshots
Twenty Twenty One:
Twenty Twenty:
Types of changes
Bug fix (non-breaking change which fixes an issue)