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.


git-svn-id: https://develop.svn.wordpress.org/trunk@58851 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Tammie Lister 2024-08-05 08:55:08 +00:00
parent d842ee4598
commit 8b2ff8636f
5 changed files with 50 additions and 0 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 {