Gutenberg: Simplify Button Block Styles

Created on 9 Jul 2019  路  5Comments  路  Source: WordPress/gutenberg

We should revise the style variations we are offering for the button block as we have created a matrix of outline/fill rounded/squared that is not the most elegant or usable. ("How can I get a squared and outlined button?")

I'd suggest removing the square/round pairs from the style selection and turning that into a border radius setting instead. That'd allow us to keep just two style variations (fill / outline).

[Block] Buttons [Status] In Progress

Most helpful comment

I ask because changing the border-radius of buttons is probably something that makes more sense in the global settings arena which we don't really have yet.

This is a good point, but also applies to style variations in general. We've discussed allowing setting certain attributes as defaults for any new block, and some of that is covered in https://github.com/WordPress/gutenberg/issues/7551

All 5 comments

I agree with @mtias!

If default button is already styled (by theme most overtime) with no radius the squared style is useless.

Great idea.

Is it really necessary to add a border radius setting?
I think it is better for consistency if the style radius comes from CSS.

Would the border-radius setting be per block? I ask because changing the border-radius of buttons is probably something that makes more sense in the global settings arena which we don't really have yet.

Maybe getting this setting into the Button block is a good version 1. I'd love to see this expand into a global setting in the future as those are explored more.

I ask because changing the border-radius of buttons is probably something that makes more sense in the global settings arena which we don't really have yet.

This is a good point, but also applies to style variations in general. We've discussed allowing setting certain attributes as defaults for any new block, and some of that is covered in https://github.com/WordPress/gutenberg/issues/7551

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BE-Webdesign picture BE-Webdesign  路  3Comments

ellatrix picture ellatrix  路  3Comments

maddisondesigns picture maddisondesigns  路  3Comments

franz-josef-kaiser picture franz-josef-kaiser  路  3Comments

davidsword picture davidsword  路  3Comments