WordPress / Documentation-Issue-Tracker

Issue Tracker for the WordPress Documentation team.
https://make.wordpress.org/docs/
Other
80 stars 41 forks source link

Block Style #725

Open porg opened 1 year ago

porg commented 1 year ago

What is the new page you are requesting?

How will this new page help you?

If integrated in existing articles

I'd expect it here mostly:

This article documents how global styles work (which have their own side panel):

AFAIK I would describe a "Block Style" like this:

A block style is a preset which holds a bundle of block attributes and their values, which you can apply to the currently selected block, by opening Block Settings → section "Styles" → clicking your desired style. E.g. for a button block the available styles in the Twenty Twenty Three theme are "Default" and "Outline".

Technical background information: A block style is a convenience function in the Block Editor GUI. You could achieve the same by going to the section "Advanced" and under "ADDITIONAL CSS CLASS(ES)" and add the corresponding classname, e.g. .is-style-outline for the "Outline" style.

The block style is defined in the theme's theme.json or the block's block.json

Block Style
zzap commented 1 year ago

Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.