Change HeadingLevelDropdown
to be a 'Change element' menu
#60598
Labels
[Block] Heading
Affects the Headings Block
[Block] Paragraph
Affects the Paragraph Block
[Feature] Block Transforms
Block transforms from one block to another
Needs Design Feedback
Needs general design feedback.
[Type] Bug
An existing feature does not function as intended
Description
See #60548 and #60567
The
HeadingLevelDropdown
component renders the menu illustrated in the screenshots below. The menu is labeled 'Change level':Depending on the selected block, the menu may provide an option to change the Heading to a Paragraph, besides providing the ability to change heading level.
After discussing #60548 with @carolinan, we'd like to propose to evolve the concept of this menu from 'change level' to 'change element'.
tagName
prop that determines the HTML tag the element is rendered with.main
,aside
,nav
,footer
, etc. The user interface for this is the 'HTML element' setting in the block inspector.tagName
change, from an user perspective the user interface should provide a consistent, easy to find and easy to use way to change a block element.Right now, the editor provides at least 3 different ways to change a block's element. Sometimes it's an option that is difficult to find and a little obscure.
From an user perspective, I'm not sure that it is important to know whether the element changes because of a block transform or because of a tagName change. Users just wat to change the element.
Providing a unique, centralized, easy to find and use, and more prominent UI to change the block element seems worth it. The block toolbar seems to be a good place where to place this feature.
Additionally:
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: