Make WordPress Core

Changeset 55317


Ignore:
Timestamp:
02/13/2023 03:18:19 PM (4 years ago)
Author:
audrasjb
Message:

Twenty Twenty: Properly reflect text color changes in Quote and Pullquote block.

This changeset ensures that text color for citation are inherited when the user specifies color for the Pullquote or Quote block, or if one of those blocks is inside a block with a background.

Props nithins53, kajalgohel, kmadhak, sabernhardt, devtanbir, james-roberts, sapayth, rafinkhan, robinwpdeveloper, poena.
Fixes #55990.

Location:
trunk/src/wp-content/themes/twentytwenty
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

    r54687 r55317  
    684684}
    685685
     686.editor-styles-wrapper .wp-block-quote.has-text-color cite,
     687.editor-styles-wrapper .wp-block-quote.has-background cite,
     688.editor-styles-wrapper .has-background .wp-block-quote cite {
     689        color: inherit;
     690}
     691
    686692.editor-styles-wrapper .wp-block-quote p {
    687693        color: inherit;
    … …  
    884890}
    885891
     892.editor-styles-wrapper .wp-block-pullquote.has-text-color cite,
     893.editor-styles-wrapper .wp-block-pullquote.has-background cite,
     894.editor-styles-wrapper .has-background .wp-block-pullquote cite {
     895        color: inherit;
     896}
     897
    886898/* STYLE: SOLID COLOR */
    887899
  • trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

    r54687 r55317  
    688688}
    689689
     690.editor-styles-wrapper .wp-block-quote.has-text-color cite,
     691.editor-styles-wrapper .wp-block-quote.has-background cite,
     692.editor-styles-wrapper .has-background .wp-block-quote cite {
     693        color: inherit;
     694}
     695
    690696.editor-styles-wrapper .wp-block-quote p {
    691697        color: inherit;
    … …  
    888894}
    889895
     896.editor-styles-wrapper .wp-block-pullquote.has-text-color cite,
     897.editor-styles-wrapper .wp-block-pullquote.has-background cite,
     898.editor-styles-wrapper .has-background .wp-block-pullquote cite {
     899        color: inherit;
     900}
     901
    890902/* STYLE: SOLID COLOR */
    891903
  • trunk/src/wp-content/themes/twentytwenty/style-rtl.css

    r54492 r55317  
    32423242}
    32433243
     3244.wp-block-pullquote.has-text-color cite,
     3245.wp-block-pullquote.has-background cite,
     3246.has-background .wp-block-pullquote cite {
     3247        color: inherit;
     3248}
     3249
    32443250.wp-block-pullquote.alignleft p,
    32453251.wp-block-pullquote.alignright p {
    … …  
    33583364.wp-block-quote cite {
    33593365        text-align: inherit;
     3366}
     3367
     3368.wp-block-quote.has-text-color cite,
     3369.wp-block-quote.has-background cite,
     3370.has-background .wp-block-quote cite {
     3371        color: inherit;
    33603372}
    33613373
  • trunk/src/wp-content/themes/twentytwenty/style.css

    r54492 r55317  
    32623262}
    32633263
     3264.wp-block-pullquote.has-text-color cite,
     3265.wp-block-pullquote.has-background cite,
     3266.has-background .wp-block-pullquote cite {
     3267        color: inherit;
     3268}
     3269
    32643270.wp-block-pullquote.alignleft p,
    32653271.wp-block-pullquote.alignright p {
    … …  
    33783384.wp-block-quote cite {
    33793385        text-align: inherit;
     3386}
     3387
     3388.wp-block-quote.has-text-color cite,
     3389.wp-block-quote.has-background cite,
     3390.has-background .wp-block-quote cite {
     3391        color: inherit;
    33803392}
    33813393
Note: See TracChangeset for help on using the changeset viewer.