Skip to content

Design tools exploration: Contextual color controls and new panels for Background, and Elements #62752

Closed

Description

@jameskoster

Extracted from discussion in #60100 (comment) and #60151.

In container blocks like Group, the Color panel provides options to apply colors to child elements such as buttons, links, and headings.

color

While this feature is useful, it has limitations – for example, it doesn't allow for adjusting the dimensions of buttons within the Group.

Another issue is the disorganized background options: the background color control is in the Color panel, while the background image control is in a separate Background Image panel.

Contextual color controls

panels

I suggest moving text and background controls to more appropriate panels. The text color control could be relocated to the Typography panel, and the background color control to a new Background panel, alongside the background image control.

A dedicated Background panel would allow users to add multiple background images and reorder them as needed.

Child elements

elements

To enhance functionality, a new 'Elements' panel could enable users to fully style child elements within a container. This approach is similar to styling blocks in Global styles, which has been quite effective.


Additionally, this reorganization could simplify the 'Overlay' option in the Cover block, combining background images and transparent background colors into a single control that can be applied to any block, not just the Cover block.

overlay

cc @WordPress/gutenberg-design for thoughts.

Activity

  1. added
    [Type] Enhancement
    [Feature] Blocks
    Needs Design Feedback
    [Feature] Nested / Inner Blocks
    [Feature] Design Tools
    on Jun 21, 2024
  2. richtabor commented on Jun 28, 2024

    @richtabor
    Member

    Interesting exploration. Would background controls open via a popover?

  3. jameskoster commented on Jun 28, 2024

    @jameskoster
    ContributorAuthor

    Precisely. There's a PR for that over here: #60151

  4. jasmussen commented on Aug 14, 2026

    @jasmussen
    Contributor

    This should be resolved with the recent background/image reorganization landed in #60100 and #60151, the "Elements" panel (Links, Headings, Buttons, Captions) has existed in the block inspector since #48893, and the remaining ask, moving root-level text color into the Typography panel and background color into the Background panel, was completed in #77279.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design Feedback[Feature] Blocks[Feature] Design Tools[Feature] Nested / Inner Blocks[Type] Enhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions