From e3a8f680d438a0f8d520fb608ac975901cd11036 Mon Sep 17 00:00:00 2001 From: Ian Belanger Date: Thu, 23 Apr 2020 15:39:55 +0000 Subject: [PATCH] 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 --- .../twentytwenty/assets/css/editor-style-block-rtl.css | 6 ++++-- .../themes/twentytwenty/assets/css/editor-style-block.css | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css index a78928d2a9..4ac85f078e 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css @@ -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; } diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css index 665a972e9c..79d922a973 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css @@ -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; }