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.

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


git-svn-id: http://core.svn.wordpress.org/trunk@58247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Tammie Lister 2024-08-05 08:57:15 +00:00
parent 2468ef9f8c
commit 76a44b13d4
6 changed files with 51 additions and 1 deletions

View File

@ -245,6 +245,14 @@
&.has-custom-font-size .wp-block-button__link {
font-size: 1em;
}
&[style*="font-weight"] .wp-block-button__link {
font-weight: inherit;
}
&[style*="text-decoration"] .wp-block-button__link {
text-decoration: inherit;
}
}
//! Latest posts, categories, archives

View File

@ -1027,6 +1027,16 @@ figcaption,
color: #0073aa;
}
.wp-block-buttons[style*="font-weight"] .wp-block-button__link,
.wp-block-button[style*="font-weight"] .wp-block-button__link {
font-weight: inherit;
}
.wp-block-buttons[style*="text-decoration"] .wp-block-button__link,
.wp-block-button[style*="text-decoration"] .wp-block-button__link {
text-decoration: inherit;
}
.wp-block-search .wp-block-search__button {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-size: 0.88889em;

View File

@ -425,6 +425,18 @@ figcaption,
}
}
.wp-block-buttons,
.wp-block-button {
&[style*="font-weight"] .wp-block-button__link {
font-weight: inherit;
}
&[style*="text-decoration"] .wp-block-button__link {
text-decoration: inherit;
}
}
.wp-block-search {
.wp-block-search__button {
@include font-family( $font__heading );

View File

@ -5569,6 +5569,16 @@ body.page .main-navigation {
font-size: 1em;
}
.entry .entry-content .wp-block-buttons[style*="font-weight"] .wp-block-button__link,
.entry .entry-content .wp-block-button[style*="font-weight"] .wp-block-button__link {
font-weight: inherit;
}
.entry .entry-content .wp-block-buttons[style*="text-decoration"] .wp-block-button__link,
.entry .entry-content .wp-block-button[style*="text-decoration"] .wp-block-button__link {
text-decoration: inherit;
}
.entry .entry-content .wp-block-archives,
.entry .entry-content .wp-block-categories,
.entry .entry-content .wp-block-latest-posts {

View File

@ -5581,6 +5581,16 @@ body.page .main-navigation {
font-size: 1em;
}
.entry .entry-content .wp-block-buttons[style*="font-weight"] .wp-block-button__link,
.entry .entry-content .wp-block-button[style*="font-weight"] .wp-block-button__link {
font-weight: inherit;
}
.entry .entry-content .wp-block-buttons[style*="text-decoration"] .wp-block-button__link,
.entry .entry-content .wp-block-button[style*="text-decoration"] .wp-block-button__link {
text-decoration: inherit;
}
.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.7-alpha-58850';
$wp_version = '6.7-alpha-58851';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.