WordPress / gutenberg

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

Add border to root level of global styles #43733

Open carolinan opened 2 years ago

carolinan commented 2 years ago

What problem does this address?

If theme.json sets a broder style on the body, the user can not change or remove this border using global styles.

What is your proposed solution?

Add border settings to root level of global styles

carolinan commented 1 year ago

@WordPress/gutenberg-design Is there any interest in adding this to the Site Editor Styles sidebar? I don't see it being mentioned in overview issues or similar.

jasmussen commented 1 year ago

Do you mean here, among typography, colors, layout?

Screenshot 2023-04-14 at 09 29 02

If yes, my instinct is to only keep the most high value global items there, and if it only sets the border on the body element, it seems to put a great deal of emphasis to something you would style in Blocks in most other cases. I know that Saxon has explored some changes to the Global Styles IA in #47348 and #47369, the latter notably having an "Elements" category that could potentially hold a "body" element.