Make WordPress Core


Ignore:
Timestamp:
02/12/2024 06:50:47 PM (7 months ago)
Author:
SergeyBiryukov
Message:

Twenty Nineteen: Correct line height for Button block.

This commit moves line-height to the Buttons container and removes the duplicate outline property.

Props sabernhardt, nidhidhandhukiya, monzuralam, shailu25, hrrarya, karmatosed, harshgajipara, nicolefurlan, fnpen, oglekler, poena, huzaifaalmesbah, audrasjb.
Fixes #58443.

File:
1 edited

Legend:

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

    r54413 r57599  
    164164    }
    165165
    166     //! Button
     166    //! Buttons
     167    .wp-block-buttons {
     168        line-height: $font__line-height-heading;
     169    }
     170
    167171    .wp-block-button {
    168172
     
    172176            font-size: $font__size-sm;
    173177            @include font-family( $font__heading );
    174             line-height: $font__line-height-heading;
    175178            box-sizing: border-box;
    176179            font-weight: bold;
    177180            text-decoration: none;
    178181            padding: ($size__spacing-unit * .76) $size__spacing-unit;
    179             outline: none;
    180182            outline: none;
    181183
Note: See TracChangeset for help on using the changeset viewer.