Make WordPress Core

Changeset 58851


Ignore:
Timestamp:
08/05/2024 08:55:08 AM (7 months ago)
Author:
karmatosed
Message:

Twenty Nineteen: Fixes Button block not changing appearance settings.

The Button block isn't reflecting appearance settings. This fix keeps the default as font-weight bold but also adds support for other weights.

Props pranitdugad, pitamdey, sabernhardt.
Fixes #61437.

Location:
trunk/src/wp-content/themes/twentynineteen
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss

    r58630 r58851  
    245245        &.has-custom-font-size .wp-block-button__link {
    246246            font-size: 1em;
     247        }
     248
     249        &[style*="font-weight"] .wp-block-button__link {
     250            font-weight: inherit;
     251        }
     252
     253        &[style*="text-decoration"] .wp-block-button__link {
     254            text-decoration: inherit;
    247255        }
    248256    }
  • trunk/src/wp-content/themes/twentynineteen/style-editor.css

    r58627 r58851  
    10281028}
    10291029
     1030.wp-block-buttons[style*="font-weight"] .wp-block-button__link,
     1031.wp-block-button[style*="font-weight"] .wp-block-button__link {
     1032  font-weight: inherit;
     1033}
     1034
     1035.wp-block-buttons[style*="text-decoration"] .wp-block-button__link,
     1036.wp-block-button[style*="text-decoration"] .wp-block-button__link {
     1037  text-decoration: inherit;
     1038}
     1039
    10301040.wp-block-search .wp-block-search__button {
    10311041  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  • trunk/src/wp-content/themes/twentynineteen/style-editor.scss

    r58627 r58851  
    423423            }
    424424        }
     425    }
     426}
     427
     428.wp-block-buttons,
     429.wp-block-button {
     430
     431    &[style*="font-weight"] .wp-block-button__link {
     432        font-weight: inherit;
     433    }
     434
     435    &[style*="text-decoration"] .wp-block-button__link {
     436        text-decoration: inherit;
    425437    }
    426438}
  • trunk/src/wp-content/themes/twentynineteen/style-rtl.css

    r58732 r58851  
    55705570}
    55715571
     5572.entry .entry-content .wp-block-buttons[style*="font-weight"] .wp-block-button__link,
     5573.entry .entry-content .wp-block-button[style*="font-weight"] .wp-block-button__link {
     5574  font-weight: inherit;
     5575}
     5576
     5577.entry .entry-content .wp-block-buttons[style*="text-decoration"] .wp-block-button__link,
     5578.entry .entry-content .wp-block-button[style*="text-decoration"] .wp-block-button__link {
     5579  text-decoration: inherit;
     5580}
     5581
    55725582.entry .entry-content .wp-block-archives,
    55735583.entry .entry-content .wp-block-categories,
  • trunk/src/wp-content/themes/twentynineteen/style.css

    r58732 r58851  
    55825582}
    55835583
     5584.entry .entry-content .wp-block-buttons[style*="font-weight"] .wp-block-button__link,
     5585.entry .entry-content .wp-block-button[style*="font-weight"] .wp-block-button__link {
     5586  font-weight: inherit;
     5587}
     5588
     5589.entry .entry-content .wp-block-buttons[style*="text-decoration"] .wp-block-button__link,
     5590.entry .entry-content .wp-block-button[style*="text-decoration"] .wp-block-button__link {
     5591  text-decoration: inherit;
     5592}
     5593
    55845594.entry .entry-content .wp-block-archives,
    55855595.entry .entry-content .wp-block-categories,
Note: See TracChangeset for help on using the changeset viewer.