From bf9fa84245c3df4b0716dad127d1522d9cf5b0d4 Mon Sep 17 00:00:00 2001 From: Laurel Fulford Date: Fri, 26 Oct 2018 10:28:14 -0700 Subject: [PATCH] Add styles to stop classic block editor buttons from inheriting styles from themes. Specifically in cases where a theme's original editor styles do something with the i tag; since these are added inline, they also add italicized styles to the classic editor block buttons. --- packages/block-library/src/classic/editor.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/block-library/src/classic/editor.scss b/packages/block-library/src/classic/editor.scss index c1a06d66eaff2..1a31c69c7a65f 100644 --- a/packages/block-library/src/classic/editor.scss +++ b/packages/block-library/src/classic/editor.scss @@ -124,6 +124,11 @@ color: $dark-gray-800; } + // Prevent i tags in buttons from picking up theme editor styles. + .mce-btn i { + font-style: normal; + } + // Adjust padding to not cause a jump. .mce-toolbar-grp > div { padding: 1px 3px;