Skip to content

Commit

Permalink
Add stretch alignment to Column block. (WordPress#53325)
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines authored Aug 7, 2023
1 parent 06e48f6 commit 51e30ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/column/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ function ColumnEdit( {
<BlockVerticalAlignmentToolbar
onChange={ updateAlignment }
value={ verticalAlignment }
controls={ [ 'top', 'center', 'bottom', 'stretch' ] }
/>
</BlockControls>
<InspectorControls>
Expand Down
4 changes: 4 additions & 0 deletions packages/block-library/src/columns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@
align-self: flex-end;
}

&.is-vertically-aligned-stretch {
align-self: stretch;
}

&.is-vertically-aligned-top,
&.is-vertically-aligned-center,
&.is-vertically-aligned-bottom {
Expand Down

0 comments on commit 51e30ad

Please sign in to comment.