-
Notifications
You must be signed in to change notification settings - Fork 846
Forms: Increase form fields padding based on user-defined border-radius #28820
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
Conversation
|
Are you an Automattician? You can now test your Pull Request on WordPress.com. On your sandbox, run to get started. More details: p9dueE-5Nn-p2 |
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
* Update Form package with latest changes from trunk * Changelog * Update with changes from #28820
digitalwaveride
left a comment
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.
|
There's no 'magic number' here. |
|
But, apparently, the padding is somewhat being set relative to the border-radius value, right? If so, we might be capping the border-radius value but not the padding? |
We're not capping the border-radius, that's the browser's default behavior |
Exactly my point. We are overriding the limit of one but not the other. Then again, this is what happens when we allow so fine grained customization, people might just go for out-of-sane-range values and break it. We need to make it look good within coherent values, but if you go off the reservation, then it's up to you. |
Not sure I understand your point. |
|
ok, yeah, that wasn't clear enough. So, 2 things:
Example: the calculation gives you some 100px, but we all know more than (let's say) 32px padding will look bad. So: |
|
I'd avoid the 'magic' 32px because we can't ensure it would fit all themes. |
digitalwaveride
left a comment
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.
Thanks so much for this João!
It's much improved, especially for the multi-line text input. 🚀
jeherve
left a comment
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.
This tests well for me, but will need a rebase.
…ned border-radius (#28820) * Increase form fields padding based on user-defined border-radius * changelog * Fix field padding in the Forms package * changelog * Fix changelogger







Fixes #28776
Proposed changes:
Other information:
Jetpack product discussion
N/A
Does this pull request change what data or activity we track or use?
No
Testing instructions: