Skip to content

Commit b886ab6

Browse files
committed
Twenty Twenty: Improve support for Post Title block alignment.
This changeset ensures alignement settings are correctly reflected for the Post Title block in the Editor. Props smit08, kajalgohel, devtanbir, sabernhardt, audrasjb. Fixes #56167. git-svn-id: https://develop.svn.wordpress.org/trunk@54141 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7c72b3d commit b886ab6

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,14 @@ Inter variable font. Usage:
306306
text-align: center;
307307
}
308308

309+
.editor-styles-wrapper .wp-block-post-title.has-text-align-left {
310+
text-align: left;
311+
}
312+
313+
.editor-styles-wrapper .wp-block-post-title.has-text-align-right {
314+
text-align: right;
315+
}
316+
309317
/* DROP CAP */
310318

311319
.editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter {

src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,18 @@ Inter variable font. Usage:
306306
text-align: center;
307307
}
308308

309+
.editor-styles-wrapper .wp-block-post-title.has-text-align-left {
310+
311+
/*rtl:ignore*/
312+
text-align: left;
313+
}
314+
315+
.editor-styles-wrapper .wp-block-post-title.has-text-align-right {
316+
317+
/*rtl:ignore*/
318+
text-align: right;
319+
}
320+
309321
/* DROP CAP */
310322

311323
.editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter {

0 commit comments

Comments
 (0)