-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Paragraphs inherit parent text alignment #52293
fix: Paragraphs inherit parent text alignment #52293
Conversation
The Paragraph `align` attribute was renamed to `textAlign`. Hence, these changes adapt the block list to pass the relevant attribute to its child blocks.
Size Change: 0 B Total Size: 1.42 MB ℹ️ View Unchanged
|
Flaky tests detected in cf0d6e3. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5458462045
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Works as expected, thanks for adding a test for this!
What?
Fix Paragraphs inheriting text alignment from parent blocks.
Why?
The absence of this ability is a regression from renaming the Paragraph block's
align
attribute totextAlign
in #42960. This ability was first added in#40439 (comment).
How?
The block list item now passes the value of the parent's
textAlign
attributerather than
align
attribute.Testing Instructions
block.
text alignment.
Testing Instructions for Keyboard
n/a
Screenshots or screencast
See #42960 (comment).