mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-10 21:00:59 +01:00
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:
parent
2468ef9f8c
commit
76a44b13d4
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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 );
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user