Make WordPress Core


Ignore:
Timestamp:
08/05/2024 08:55:08 AM (2 years 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.

File:
1 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        }
Note: See TracChangeset for help on using the changeset viewer.