WordPress / gutenberg

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

Remove the "Reset styles" on preset panel when a preset is selected #65795

Open benniledl opened 1 month ago

benniledl commented 1 month ago

Remove the "Reset styles" button

Example on Font Size presets (same applies to other presets)

I think the reset styles button should be removed from the specific preset panel (clicking on a preset) and moved to the overview of all presets.

Because having a reset styles button on this specific preset panel could imply that you are only resetting this one (currently selected) preset and not every preset.

Remove from here (since it implies that reset is only affecting currently selected preset):

Screenshot 2024-10-01 at 13-48-51 Blog-Startseite ‹ Template ‹ Testsite ‹ Editor — WordPress

Only leave it here:

Screenshot 2024-10-01 at 13-49-18 Blog-Startseite ‹ Template ‹ Testsite ‹ Editor — WordPress

Originally posted by @benniledl in https://github.com/WordPress/gutenberg/issues/65774#issuecomment-2385551382

matiasbenedetto commented 1 month ago

I understand the issue, but I think it is not specific to font size presets, as the title suggests. The same issue could happen with other presets like, for example, palettes and shadows:

Shadows Colors
Screenshot from 2024-10-01 13-48-03 Screenshot from 2024-10-01 13-47-41