From caa0c53e325566523f3507852cff417b3f156963 Mon Sep 17 00:00:00 2001 From: Ella Date: Wed, 29 Nov 2023 15:38:06 +0100 Subject: [PATCH] Editor styles: if scope is needed, don't increase specificity --- packages/block-editor/src/components/editor-styles/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/editor-styles/index.js b/packages/block-editor/src/components/editor-styles/index.js index 85c54109d0231..024427b0a34a3 100644 --- a/packages/block-editor/src/components/editor-styles/index.js +++ b/packages/block-editor/src/components/editor-styles/index.js @@ -88,7 +88,7 @@ export default function EditorStyles( { styles, scope } ) { return [ transformStyles( _styles.filter( ( style ) => style?.css ), - scope + scope ? `:where(${ scope })` : undefined ), _styles .filter( ( style ) => style.__unstableType === 'svgs' )