Query Title: Migrate to Text-Align Block Support#75802
Conversation
|
Size Change: +85 B (0%) Total Size: 6.84 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in c1d03cc. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/22272704836
|
|
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. |
What?
Part of #60763
Migrates the
Query Titleblock to use the textAlign block support instead of a customtextAlignattribute. As a consequence it also enables global styles support fortextAlignfor theQuery Title.Why?
The
Query Titleblock currently implements its own text alignment logic with a custom align attribute, duplicating code that should be handled by the centralizedQuery 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
Query Titleblock and test text alignment (left, center, right)Query Titleblocks that have alignment set