Search Block: Add support for setting the border radius#25203
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 |
aaronrobertshaw
left a comment
There was a problem hiding this comment.
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 <60436221+aaronrobertshaw@users.noreply.github.com>
|
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: