Skip to content

Search Block: Button Inside and Outside options behave similarly #69318

Closed as not planned
@Rishit30G

Description

@Rishit30G

Description

Currently, the ‘Button Inside’ and ‘Button Outside’ options in the search block function the same way, with the only difference being the border. We should reconsider the ‘Button Inside’ implementation, as it should place the button inside the input field. However, it is currently still positioned outside. Additionally, if the border is removed from the ‘Button Inside’ option, it becomes identical to the ‘Button Outside’ option.

Step-by-step reproduction instructions

  1. Create a new post.
  2. Add the Search block to the post.
  3. In the Block Toolbar, click on the 'Change Position Button' option.
  4. From the dropdown, select 'Button Outside'.
  5. Now, switch to 'Button Inside' from the same dropdown.
  6. Observe that the only noticeable difference between the two options is a border enclosing the search input and button when 'Button Inside' is selected.
  7. To remove this border, go to Styles > Border and set the Border value to 0 px.
  8. Notice that now both the 'Button Inside' and 'Button Outside' options appear almost identical.

Screenshots, screen recording, code snippet

Screen.Recording.2025-02-26.at.11.07.53.AM.mov

Environment info

  • WordPress 6.7.2
  • Gutenberg 20.3.2

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

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