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
This commit is contained in:
Jb Audras 2022-09-13 08:45:18 +00:00
parent 7c72b3d589
commit b886ab6595
2 changed files with 20 additions and 0 deletions

View File

@ -306,6 +306,14 @@ Inter variable font. Usage:
text-align: center;
}
.editor-styles-wrapper .wp-block-post-title.has-text-align-left {
text-align: left;
}
.editor-styles-wrapper .wp-block-post-title.has-text-align-right {
text-align: right;
}
/* DROP CAP */
.editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter {

View File

@ -306,6 +306,18 @@ Inter variable font. Usage:
text-align: center;
}
.editor-styles-wrapper .wp-block-post-title.has-text-align-left {
/*rtl:ignore*/
text-align: left;
}
.editor-styles-wrapper .wp-block-post-title.has-text-align-right {
/*rtl:ignore*/
text-align: right;
}
/* DROP CAP */
.editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter {