Skip to content

Add "stretch" as option on Row block.  #41280

Closed

Description

What problem does this address?

It's currently not possible to use align-items:stretch to make items inside a row block vertically fill the space available.

While stretch is the default for a flex item in CSS, I am not able to use that in the block editor.
Screen Shot 2022-05-23 at 4 52 17 PM

What is your proposed solution?

Add "stretch" to the available options, alongside Align top, Align middle, and Align bottom.

const BLOCK_ALIGNMENTS_CONTROLS = {
top: {
icon: alignTop,
title: _x( 'Align top', 'Block vertical alignment setting' ),
},
center: {
icon: alignCenter,
title: _x( 'Align middle', 'Block vertical alignment setting' ),
},
bottom: {
icon: alignBottom,
title: _x( 'Align bottom', 'Block vertical alignment setting' ),
},
};

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

Metadata

Assignees

No one assigned

    Labels

    [Block] GroupAffects the Group Block[Feature] LayoutLayout block support, its UI controls, and style output.[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions