Skip to content

ToolsPanel: Improve ellipsis menu with subheadings and separate reset button for default tools #44096

@jasmussen

Description

@jasmussen

The ToolsPanel component comes with an ellipsis menu. This ellipsis menu serves two purposes:

  1. To make available design tools that are occasionally but not always useful
  2. To clear various such properties back to their default state

This panel is in part created to allow more design tools in a legible state, without encumbering the panel with repeated "Reset" buttons. In most cases, after all, you can select "Default" from a drop-down, or select and clear a line-height value, accomplishing the same. here's what it looks like today:

Typography panel today

For the cases where it still needs to be clearer how to reset a value back to its defaults, however, we can improve the clarity of the menu.

Typography panel with tweaks

Shown left, a Typography panel with the default font size shown, but no value chosen. Shown right, the panel with the additional non-default Font and Appearance tools shown, including a value picked for font size. The main changes are:

  • Sections have subheadings delineating default tools (always shown in the panel) and additional tools.
  • The default tool is no longer a full button that gets disabled when it has no set value, instead it gets an explicit "Reset" button on the right.
  • Additional tool can be cleared and removed by unchecking, just as today.

Note that these improvements do not preclude additional enhancements, but they could be a starting point. See also #43082.

Metadata

Metadata

Labels

Needs DevReady for, and needs developer efforts[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions