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-button__link when either its Buttons or Button block has a custom size.

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

Built from https://develop.svn.wordpress.org/trunk@58199


git-svn-id: http://core.svn.wordpress.org/trunk@57662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Tammie Lister 2024-05-26 08:49:09 +00:00
parent a9135c617a
commit 56ce2e58de
4 changed files with 19 additions and 1 deletions

View File

@ -239,6 +239,14 @@
}
}
.wp-block-buttons,
.wp-block-button {
&.has-custom-font-size .wp-block-button__link {
font-size: 1em;
}
}
//! Latest posts, categories, archives
.wp-block-archives,
.wp-block-categories,

View File

@ -5563,6 +5563,11 @@ body.page .main-navigation {
color: #111;
}
.entry .entry-content .wp-block-buttons.has-custom-font-size .wp-block-button__link,
.entry .entry-content .wp-block-button.has-custom-font-size .wp-block-button__link {
font-size: 1em;
}
.entry .entry-content .wp-block-archives,
.entry .entry-content .wp-block-categories,
.entry .entry-content .wp-block-latest-posts {

View File

@ -5575,6 +5575,11 @@ body.page .main-navigation {
color: #111;
}
.entry .entry-content .wp-block-buttons.has-custom-font-size .wp-block-button__link,
.entry .entry-content .wp-block-button.has-custom-font-size .wp-block-button__link {
font-size: 1em;
}
.entry .entry-content .wp-block-archives,
.entry .entry-content .wp-block-categories,
.entry .entry-content .wp-block-latest-posts {

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.6-alpha-58198';
$wp_version = '6.6-alpha-58199';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.