From fe7e96290ac41408d4f7a2ce4282a51f0357f7c1 Mon Sep 17 00:00:00 2001 From: Maggie Date: Fri, 24 Jun 2022 12:49:10 +0200 Subject: [PATCH] Elements: lower specificity of elements block css (#41931) * lower specificity of elements css * undo specificity change on elements rules * moved default font size to styleshet instead of block.json --- packages/block-library/src/file/block.json | 11 +---------- packages/block-library/src/file/style.scss | 4 ++++ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/packages/block-library/src/file/block.json b/packages/block-library/src/file/block.json index 674027747f960..8e90825a64dfd 100644 --- a/packages/block-library/src/file/block.json +++ b/packages/block-library/src/file/block.json @@ -56,16 +56,7 @@ }, "supports": { "anchor": true, - "align": true, - "__experimentalStyle": { - "elements": { - "button": { - "typography": { - "fontSize": "0.8em" - } - } - } - } + "align": true }, "viewScript": "file:./view.min.js", "editorStyle": "wp-block-file-editor", diff --git a/packages/block-library/src/file/style.scss b/packages/block-library/src/file/style.scss index 2362f0529eb09..6452fdb9e7889 100644 --- a/packages/block-library/src/file/style.scss +++ b/packages/block-library/src/file/style.scss @@ -1,6 +1,10 @@ .wp-block-file { margin-bottom: 1.5em; + &:not(.wp-element-button) { + font-size: 0.8em; + } + &.aligncenter { text-align: center; }