From a22b6b03d9109c7276b63e67b94dd8fbae9d70f4 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Wed, 20 Jul 2022 17:33:17 +0900 Subject: [PATCH] Elements: fix heading and caption element selectors (#42479) --- packages/blocks/src/api/constants.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/blocks/src/api/constants.js b/packages/blocks/src/api/constants.js index b852fe3932fa05..22205777d14e4b 100644 --- a/packages/blocks/src/api/constants.js +++ b/packages/blocks/src/api/constants.js @@ -214,6 +214,7 @@ export const __EXPERIMENTAL_STYLE_PROPERTY = { export const __EXPERIMENTAL_ELEMENTS = { link: 'a', + heading: 'h1, h2, h3, h4, h5, h6', h1: 'h1', h2: 'h2', h3: 'h3', @@ -221,6 +222,8 @@ export const __EXPERIMENTAL_ELEMENTS = { h5: 'h5', h6: 'h6', button: '.wp-element-button, .wp-block-button__link', + caption: + '.wp-element-caption, .wp-block-audio figcaption, .wp-block-embed figcaption, .wp-block-gallery figcaption, .wp-block-image figcaption, .wp-block-table figcaption, .wp-block-video figcaption', }; export const __EXPERIMENTAL_PATHS_WITH_MERGE = {