Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd Label Support for URLInput Component #15669
Conversation
|
Hi @pstonier, thank you for your contribution.
Things worked as expected, and the only difference between the result in this branch and the result in the master is that in this branch the label appears. I noticed that when this component is used in the inspector without additional styles changes, the dimensions are wrong, and the result is unexpected, but that is not a regression from these changes. |
This comment has been minimized.
This comment has been minimized.
|
I agree with your suggestions and have submitted the changes. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Thanks for catching that. The most recent commit should fix it. |
| .components-base-control:last-child, | ||
| .components-base-control:last-child .components-base-control__field { | ||
| margin-bottom: 0; | ||
| } |
This comment has been minimized.
This comment has been minimized.
pablinos
Aug 18, 2019
This might be necessary, but it didn't fix the styling problem for me. Adding the following rule, removed the extra space below the input:
.block-editor-url-input > .components-base-control__field {
margin-bottom: 0;
}
@talldan is this the margin that you were referring to?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I pushed a couple of commits to finish this PR off, and tested as a replacement for the hackery in Automattic/jetpack#13745. @pstonier: Are you able to rebase this PR? GitHub was acting up on me when I tried to push a rebase, it should hopefully work for you. |




pstonier commentedMay 15, 2019
•
edited
Description
Added the ability to set a label for the URLInput field to follow the same structure as the TextControl.
How has this been tested?
Locally in Chrome.
Screenshots
Types of changes
Checklist: