Create a component to replace the HeadingLevelDropdown toolbar option. #45743
Labels
[Block] Heading
Affects the Headings Block
Needs Design Feedback
Needs general design feedback.
[Package] Block editor
/packages/block-editor
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
The HeadingLevelDropdown is a toolbar option used to choose between H1-H6 in the heading block, comments title, query title, and post title. The files are in the heading block, and the other blocks import them.
The site title has its own similar option, and it adds a paragraph to the selection.
In addition, if merged, the proposed Details block would also use a heading level option.
There are visual differences between the two options, because they use different icons and site title shows the name of the element in the dropdown.
Heading block:
Site title:
What is your proposed solution?
Create a component, to which the blocks can pass the HTML tags that should be available.
The benefits are that it would be more future proof in case the heading block changes, it reduces code duplication, the option would look the same in every block where it is used, and no longer be limited to heading elements.
We would need to decide which of the two dropdown designs to use.
The text was updated successfully, but these errors were encountered: