Skip to content
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: Borders: Setting applies to container element #42339

Open
scruffian opened this issue Jul 11, 2022 · 2 comments
Open

Search block: Borders: Setting applies to container element #42339

scruffian opened this issue Jul 11, 2022 · 2 comments
Labels
[Block] Search Affects the Search Block - used to display a search field [Type] Bug An existing feature does not function as intended

Comments

@scruffian
Copy link
Contributor

Description

The "border" setting in theme.json for the core/search block doesn't apply to the input, as it does when set via the inspector controls.

Step-by-step reproduction instructions

  1. Add this to your theme.json
			"core/search": {
				"border": {
					"color": "var(--wp--preset--color--orange)",
					"style": "solid",
					"width": "2px"
				},
  1. Notice that the search block looks like this:

Screenshot 2022-07-11 at 18 49 29

The border should only apply to the input.

Screenshots, screen recording, code snippet

Screenshot 2022-07-11 at 18 49 29

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@scruffian scruffian added the [Block] Search Affects the Search Block - used to display a search field label Jul 11, 2022
@scruffian scruffian moved this to Issues Created in Ignite Build a Theme Jul 11, 2022
@carolinan
Copy link
Contributor

Related, but I thought this was expected, so I closed the issue: #34216

@carolinan
Copy link
Contributor

This also happens when you select colors in the site editor Styles sidebar. It affects the form. While if you use the setting in the block it affects the button.

@jordesign jordesign added the [Type] Bug An existing feature does not function as intended label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Search Affects the Search Block - used to display a search field [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants