Skip to content

ToggleGroupControl: Support bordered style without taking up full width #74165

@mirka

Description

@mirka

ToggleGroupControl does not officially support the bottom layout, where there are borders but the component doesn't take up the full width of the container:

Bordered ToggleGroupControls

This can be done by adding a width: fit-content. What's unclear is how to sort out the current props, such as isAdaptiveWidth and isBlock, which are confusing and don't reflect how we actually think about these variants.

Not sure yet if we should simply tack this feature onto the existing prop system, or we should wait for a new version in @wordpress/ui where we can rethink all the props.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions