-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Increase color picker button height #11093
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
base: trunk
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,7 +10,7 @@ | |||||
|
|
||||||
| /* Needs higher specificity to override `.wp-core-ui .button`. */ | ||||||
| .wp-picker-container .wp-color-result.button { | ||||||
| min-height: 30px; | ||||||
| min-height: 40px; | ||||||
| margin: 0 6px 6px 0; | ||||||
| padding: 0 0 0 30px; | ||||||
| font-size: 11px; | ||||||
|
|
@@ -23,7 +23,7 @@ | |||||
| color: #50575e; | ||||||
| display: block; | ||||||
| line-height: 2.54545455; /* 28px */ | ||||||
| padding: 0 6px; | ||||||
| padding: 5px 6px; | ||||||
| text-align: center; | ||||||
| } | ||||||
|
|
||||||
|
|
@@ -77,7 +77,7 @@ | |||||
| margin-left: 6px; | ||||||
| padding: 0 8px; | ||||||
| line-height: 2.54545455; /* 28px */ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
The expected element height here is 38 / 11 = 3.454545454545455
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I worked on it, but @mukeshpanchal27 requested changes. After that, I restored the line and used padding. |
||||||
| min-height: 30px; | ||||||
| min-height: 40px; | ||||||
| } | ||||||
|
|
||||||
| .wp-picker-container .iris-square-slider .ui-slider-handle:focus { | ||||||
|
|
@@ -98,7 +98,7 @@ | |||||
| margin: 0; | ||||||
| padding: 0 5px; | ||||||
| vertical-align: top; | ||||||
| min-height: 30px; | ||||||
| min-height: 40px; | ||||||
| } | ||||||
|
|
||||||
| .wp-color-picker::-webkit-input-placeholder { | ||||||
|
|
||||||
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 think the two lines here are contradictory. Based on the implementation so far, I think the element height should be determined only by the line-height value. The expected element height here is
38pxand the font size is11px, so theline-heightvalue can be calculated using the following formula:38 / 11 = 3.454545454545455