Skip to content

Commit

Permalink
Add paragraph on opting out of generated styles
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Sep 21, 2022
1 parent 2da523e commit 8df0b84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/explanations/architecture/styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,7 @@ The current semantic class names that can be output by the Layout block support
* `is-content-justification-right`: When a block explicitly sets `justifyContent` to `right`.
* `is-content-justification-space-between`: When a block explicitly sets `justifyContent` to `space-between`.
* `is-nowrap`: When a block explicitly sets `flexWrap` to `nowrap`.

#### Opting out of generated layout styles

Layout styles output is switched on by default because the styles are required by core structural blocks. However, themes can opt out of generated block layout styles while retaining semantic class name output by using the `disable-layout-styles` block support. Such themes will be responsible for providing all their own structural layout styles. See [the entry under Theme Support](https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#disabling-base-layout-styles).

0 comments on commit 8df0b84

Please sign in to comment.