Skip to content

Conversation

@aaronrobertshaw
Copy link
Contributor

What?

Updates global styles documentation around section styles a.k.a block style variations.

Why?

The existing docs were outdated and missing new features.

How?

  • Removed incorrect outdated info
  • Added overview of new block style variation features such as theme.json partials, and registering variation styles via register_block_style

Testing Instructions

  1. Give the markdown changes a proofread
  2. If you're really keen you could even follow the snippets in the updated docs to try adding some block style variations and styles to your current theme.

@aaronrobertshaw aaronrobertshaw added [Type] Developer Documentation Documentation for developers [Feature] Block Style Variations Issues or PRs that are related to the style variations for blocks labels Dec 20, 2024
@aaronrobertshaw aaronrobertshaw self-assigned this Dec 20, 2024
@github-actions
Copy link

github-actions bot commented Dec 20, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: ramonjd <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions
Copy link

Flaky tests detected in aa6ffe5.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12427502186
📝 Reported issues:

Copy link
Member

@ramonjd ramonjd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ramonjd ramonjd merged commit 9cb002e into trunk Dec 20, 2024
74 checks passed
@ramonjd ramonjd deleted the update/block-style-variation-docs branch December 20, 2024 08:51
@github-actions github-actions bot added this to the Gutenberg 20.0 milestone Dec 20, 2024
@aaronrobertshaw
Copy link
Contributor Author

Thanks for getting this merged 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Block Style Variations Issues or PRs that are related to the style variations for blocks [Type] Developer Documentation Documentation for developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants