From d76ef6eb0044589646e1ca513cec5e934502776e Mon Sep 17 00:00:00 2001 From: Juan Aldasoro Date: Mon, 9 Jan 2023 17:18:09 +0100 Subject: [PATCH 1/2] Add help text on the HTML element for the `Comments` and `Query Loop` blocks. --- .../comments/edit/comments-inspector-controls.js | 13 +++++++++++-- .../block-library/src/query/edit/query-content.js | 12 ++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/comments/edit/comments-inspector-controls.js b/packages/block-library/src/comments/edit/comments-inspector-controls.js index e548fece552f9..263e8bde69917 100644 --- a/packages/block-library/src/comments/edit/comments-inspector-controls.js +++ b/packages/block-library/src/comments/edit/comments-inspector-controls.js @@ -6,9 +6,17 @@ import { __ } from '@wordpress/i18n'; import { InspectorControls } from '@wordpress/block-editor'; export default function CommentsInspectorControls( { - attributes: { TagName }, + attributes: { tagName }, setAttributes, } ) { + const htmlElementMessages = { + section: __( + "The
element should represent a standalone portion of the document that can't be better represented by another element." + ), + aside: __( + "The