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