Bundled Themes: Twenty Twenty button styles produce inconsistent output and cannot be edited.

Fixes the issue with button styles not working when the Gutenberg plugin is activated while maintaining backwards compatibility.

Props nrqsnchz, poena, kjellr.
Fixes #49896.

git-svn-id: https://develop.svn.wordpress.org/trunk@47614 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ian Belanger 2020-04-23 15:39:55 +00:00
parent c1bb2c2f74
commit e3a8f680d4
2 changed files with 8 additions and 4 deletions

View File

@ -902,7 +902,8 @@ hr.wp-block-separator.is-style-dots::before {
/* BUTTON STYLE: OUTLINE */
.editor-styles-wrapper .is-style-outline .wp-block-button__link {
.editor-styles-wrapper .is-style-outline .wp-block-button__link,
.editor-styles-wrapper .is-style-outline.wp-block-button__link {
background: none;
border-color: currentColor;
color: #cd2653;
@ -911,7 +912,8 @@ hr.wp-block-separator.is-style-dots::before {
/* BUTTON STYLE: SQUARED */
.editor-styles-wrapper .is-style-squared .wp-block-button__link {
.editor-styles-wrapper .is-style-squared .wp-block-button__link,
.editor-styles-wrapper .is-style-squared.wp-block-button__link {
border-radius: 0;
}

View File

@ -902,7 +902,8 @@ hr.wp-block-separator.is-style-dots::before {
/* BUTTON STYLE: OUTLINE */
.editor-styles-wrapper .is-style-outline .wp-block-button__link {
.editor-styles-wrapper .is-style-outline .wp-block-button__link,
.editor-styles-wrapper .is-style-outline.wp-block-button__link {
background: none;
border-color: currentColor;
color: #cd2653;
@ -911,7 +912,8 @@ hr.wp-block-separator.is-style-dots::before {
/* BUTTON STYLE: SQUARED */
.editor-styles-wrapper .is-style-squared .wp-block-button__link {
.editor-styles-wrapper .is-style-squared .wp-block-button__link,
.editor-styles-wrapper .is-style-squared.wp-block-button__link {
border-radius: 0;
}