Make WordPress Core

Changeset 61441


Ignore:
Timestamp:
01/05/2026 10:53:11 PM (10 months ago)
Author:
SergeyBiryukov
Message:

Twenty Sixteen: Ensure the Quote block inherits group color settings.

The purpose of this change is to ensure that the quote block and the quote block cite inherits the text color from the parent block, if:

  • The parent has a text color set in the block settings, and
  • The quote block does not have a text color set in the block settings.

Follow-up to [43799], [56087].

Props poena, melchoyce, sabernhardt, mukesh27, apermo, SergeyBiryukov.
Fixes #51236.

Location:
trunk/src/wp-content/themes/twentysixteen/css
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentysixteen/css/blocks.css

    r58907 r61441  
    7878        border-width: 0 0 0 4px;
    7979}
    80  
     80
    8181:where(.rtl) .wp-block-quote {
    8282        border-width: 0 4px 0 0;
    … …  
    104104
    105105.wp-block-quote.has-text-color cite {
     106        color: inherit;
     107}
     108
     109.has-text-color .wp-block-quote:not(.has-text-color),
     110.has-text-color .wp-block-quote:not(.has-text-color) cite {
    106111        color: inherit;
    107112}
  • trunk/src/wp-content/themes/twentysixteen/css/editor-blocks.css

    r60342 r61441  
    322322}
    323323
    324 .wp-block-quote__citation {
     324.wp-block-quote__citation,
     325.wp-block-quote cite {
    325326        color: #1a1a1a;
    326327        display: block;
    … …  
    331332
    332333.wp-block-quote.has-text-color .wp-block-quote__citation {
     334        color: inherit;
     335}
     336
     337.has-text-color .wp-block-quote:not(.has-text-color),
     338.has-text-color .wp-block-quote:not(.has-text-color) cite {
    333339        color: inherit;
    334340}
    … …  
    551557        font-size: inherit;
    552558}
    553        
     559
    554560.wp-block-pullquote[style*="line-height"] blockquote,
    555561.wp-block-pullquote[style*="line-height"] blockquote p,
Note: See TracChangeset for help on using the changeset viewer.