Make WordPress Core

Changeset 58199


Ignore:
Timestamp:
05/26/2024 08:47:20 AM (7 weeks ago)
Author:
karmatosed
Message:

Twenty Nineteen: Resolves button block font issues.

The font on buttons was displaying less than the font size when applied through the editor. This resets the relative measurement on wp-block-buttonlink when either its Buttons or Button block has a custom size.

Props nidhidhandhukiya, sabernhardt, SergeyBiryukov, manojmaharrshi, darshitrajyaguru97, shailu25.
Fixes #56443.

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

Legend:

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

    r58178 r58199  
    237237                color: $color__background-button-hover;
    238238            }
     239        }
     240    }
     241
     242    .wp-block-buttons,
     243    .wp-block-button {
     244
     245        &.has-custom-font-size .wp-block-button__link {
     246            font-size: 1em;
    239247        }
    240248    }
  • trunk/src/wp-content/themes/twentynineteen/style-rtl.css

    r57886 r58199  
    55645564}
    55655565
     5566.entry .entry-content .wp-block-buttons.has-custom-font-size .wp-block-button__link,
     5567.entry .entry-content .wp-block-button.has-custom-font-size .wp-block-button__link {
     5568  font-size: 1em;
     5569}
     5570
    55665571.entry .entry-content .wp-block-archives,
    55675572.entry .entry-content .wp-block-categories,
  • trunk/src/wp-content/themes/twentynineteen/style.css

    r57886 r58199  
    55765576}
    55775577
     5578.entry .entry-content .wp-block-buttons.has-custom-font-size .wp-block-button__link,
     5579.entry .entry-content .wp-block-button.has-custom-font-size .wp-block-button__link {
     5580  font-size: 1em;
     5581}
     5582
    55785583.entry .entry-content .wp-block-archives,
    55795584.entry .entry-content .wp-block-categories,
Note: See TracChangeset for help on using the changeset viewer.