Twenty Seventeen: Resolves image block caption text alignment inconsitency.

The caption for image block was misaligned. The issue appeared in 5.8 due to the block class name change making the selector meaningless. This is resolved by a change in the selectors.

Props nkeller15, sabernhardt, thakordarshil, anilvaza, shailu25, pavanpatil1, darshitrajyaguru97.
Fixes #58539.

Built from https://develop.svn.wordpress.org/trunk@58207


git-svn-id: http://core.svn.wordpress.org/trunk@57670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Tammie Lister 2024-05-27 12:43:11 +00:00
parent b4aa9d18b1
commit fd798307a0
2 changed files with 8 additions and 4 deletions

View File

@ -458,15 +458,19 @@ html[lang="th"] .edit-post-visual-editor * {
margin-top: 0.5em;
}
/* Caption styles*/
/* Caption styles */
[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
[class^="wp-block-"]:not(.wp-block-gallery) > figcaption,
[class*=" wp-block-"]:not(.wp-block-gallery) > figcaption {
font-style: italic;
margin-bottom: 1.5em;
text-align: left;
}
.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
.rtl [class^="wp-block-"]:not(.wp-block-gallery) > figcaption,
.rtl [class*=" wp-block-"]:not(.wp-block-gallery) > figcaption,
[dir="rtl"] [class^="wp-block-"]:not(.wp-block-gallery) > figcaption,
[dir="rtl"] [class*=" wp-block-"]:not(.wp-block-gallery) > figcaption {
text-align: right;
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.6-alpha-58206';
$wp_version = '6.6-alpha-58207';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.