Skip to content

Commit

Permalink
Fix missing default align-items when items are oriented vertically …
Browse files Browse the repository at this point in the history
…in `flex` layout (#38069)

* Fix missing default when items are oriented vertically

* Fix lint error.
  • Loading branch information
ndiego authored Jan 19, 2022
1 parent e8d105e commit f3985db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/block-supports/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ function gutenberg_get_layout_style( $selector, $layout, $has_block_gap_support
$style .= 'flex-direction: column;';
if ( ! empty( $layout['justifyContent'] ) && array_key_exists( $layout['justifyContent'], $justify_content_options ) ) {
$style .= "align-items: {$justify_content_options[ $layout['justifyContent'] ]};";
} else {
$style .= 'align-items: flex-start;';
}
}
$style .= '}';
Expand Down

0 comments on commit f3985db

Please sign in to comment.