Post Title : Migrate to Text-Align Block Support#75629
Conversation
|
Size Change: +46 B (0%) Total Size: 6.84 MB
ℹ️ View Unchanged
|
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
test/integration/fixtures/blocks/core__post-title__deprecated-v2.html
Outdated
Show resolved
Hide resolved
00bb984 to
743c30e
Compare
|
I will work on this PR over the weekend. |
8f37649 to
70fe761
Compare
|
The mentioned changes have been added. |
|
Flaky tests detected in 92b6ecc. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/22270533592
|
What?
Part of #60763
Migrates the
Post Titleblock to use the textAlign block support instead of a customtextAlignattribute. As a consequence it also enables global styles support fortextAlignfor thePost Title.Why?
The
Post Titleblock currently implements its own text alignment logic with a custom align attribute, duplicating code that should be handled by the centralizedPost Titleblock support. This migration reduces code duplication and consolidates alignment handling across blocks.How?
Replaces the custom logic with the block supports, adds deprecation and fixes transforms.
Testing Instructions
Post Titleblock and test text alignment (left, center, right)Post Titleblocks that have alignment set