Skip to content

Commit

Permalink
Twenty Seventeen: Resolves image block caption text alignment inconsi…
Browse files Browse the repository at this point in the history
…tency.

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.


git-svn-id: https://develop.svn.wordpress.org/trunk@58207 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
karmatosed committed May 27, 2024
1 parent cf2cbb9 commit f1c0e58
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f1c0e58

Please sign in to comment.