Make WordPress Core

Changeset 58207


Ignore:
Timestamp:
05/27/2024 12:41:32 PM (8 weeks ago)
Author:
karmatosed
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css

    r58204 r58207  
    459459}
    460460
    461 /* Caption styles*/
    462 
    463 [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
     461/* Caption styles */
     462
     463[class^="wp-block-"]:not(.wp-block-gallery) > figcaption,
     464[class*=" wp-block-"]:not(.wp-block-gallery) > figcaption {
    464465    font-style: italic;
    465466    margin-bottom: 1.5em;
     
    467468}
    468469
    469 .rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
     470.rtl [class^="wp-block-"]:not(.wp-block-gallery) > figcaption,
     471.rtl [class*=" wp-block-"]:not(.wp-block-gallery) > figcaption,
     472[dir="rtl"] [class^="wp-block-"]:not(.wp-block-gallery) > figcaption,
     473[dir="rtl"] [class*=" wp-block-"]:not(.wp-block-gallery) > figcaption {
    470474    text-align: right;
    471475}
Note: See TracChangeset for help on using the changeset viewer.