Skip to content

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

@scruffian

Description

@scruffian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] SearchAffects the Search Block - used to display a search field[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions