WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.49k stars 4.18k forks source link

Tweak the appearance of the 'Button only' style in the Search block #65344

Open octaedro opened 1 month ago

octaedro commented 1 month ago

What problem does this address?

WooCommerce issue #47892 requested some changes that would make sense to apply in core components.

The Search block has a 'Button only' style in the toolbar, which doesn't seem to work properly. When the block is selected, we still show the input field, but in an odd, minimized state. Ideally, the input wouldn't be shown at all.

image

I also noticed a display issue on the front-end where the search button is cut off on the sides if the block's width isn't set to 100%.

image image

What is your proposed solution?

// CC @jarekmorawski @j111q

carolinan commented 1 month ago

Hi I am not able to reproduce this. It seems to be specific to how WooCommerce uses the block.