From f18e282cebf3e383b7f189b6ba5e199b32ebea7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s?= Date: Thu, 6 Aug 2020 18:57:27 +0200 Subject: [PATCH] Try new syntax --- packages/block-library/src/heading/block.json | 9 +++------ packages/block-library/src/post-title/block.json | 10 +++------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/packages/block-library/src/heading/block.json b/packages/block-library/src/heading/block.json index fd03a4487ee5aa..2d73cd5151cfe0 100644 --- a/packages/block-library/src/heading/block.json +++ b/packages/block-library/src/heading/block.json @@ -29,12 +29,9 @@ "__experimentalFontSize": true, "__experimentalLineHeight": true, "__experimentalSelector": { - "core/heading/h1": "h1", - "core/heading/h2": "h2", - "core/heading/h3": "h3", - "core/heading/h4": "h4", - "core/heading/h5": "h5", - "core/heading/h6": "h6" + "attribute": "level", + "expression": "h${attribute}", + "range": ["h1", "h2", "h3", "h4", "h5", "h6"] }, "__unstablePasteTextInline": true } diff --git a/packages/block-library/src/post-title/block.json b/packages/block-library/src/post-title/block.json index ec3cad1f435ae8..554fb14148102f 100644 --- a/packages/block-library/src/post-title/block.json +++ b/packages/block-library/src/post-title/block.json @@ -23,13 +23,9 @@ "__experimentalFontSize": true, "__experimentalLineHeight": true, "__experimentalSelector": { - "core/post-title/h1": "h1", - "core/post-title/h2": "h2", - "core/post-title/h3": "h3", - "core/post-title/h4": "h4", - "core/post-title/h5": "h5", - "core/post-title/h6": "h6", - "core/post-title/p": "p" + "attribute": "level", + "expression": "h${attribute}", + "range": ["h1", "h2", "h3", "h4", "h5", "h6"] } } }