-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Search Block: Add support for setting the border radius #25203
Conversation
Size Change: +202 B (0%) Total Size: 1.2 MB
ℹ️ View Unchanged
|
36e0b65
to
8d35ba2
Compare
✅ Rebased |
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.
There were just a couple of minor issues though. The PHPCS linting threw up a number of errors and warnings that need to be addressed. There was also a rogue "
that can be deleted.
I took a stab at adjusting the border radii for the input and button when the button is positioned "inside". There is a PR here: #25553
Feel free to ignore it if there is a better approach. The one I took only uses a very simple formula, innerRadius = outerRadius - padding
. It doesn't take into account possible varying border widths, paddings etc that could be overridden by the theme or global styles. Long story short, it's not a perfect solution but might be a start to build from.
Co-authored-by: Aaron Robertshaw <[email protected]>
Looks good @aaronrobertshaw, let's close this in favor of #25553 |
Part of: #22071
Description
Add support for setting the border radius on the search input field and search button in the search block. This is a single setting that will adjust the radius for both together.
How has this been tested?
Tested locally, all unit tests passing.
Testing Instructions
Types of changes
New feature (non-breaking change which adds functionality)
Checklist: