Skip to content

Commit

Permalink
Styles engine: fix flex direction column in vertical orientation (#42939
Browse files Browse the repository at this point in the history
)
  • Loading branch information
matiasbenedetto authored Aug 4, 2022
1 parent fd060e3 commit 88899c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/block-supports/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ function gutenberg_get_layout_style( $selector, $layout, $has_block_gap_support
);
}
} else {
$layout_styles[ $selector ] = array(
'flex-direction' => 'column',
'align-items' => 'flex-start',
$layout_styles[] = array(
'selector' => $selector,
'declarations' => array( 'flex-direction' => 'column' ),
);
if ( ! empty( $layout['justifyContent'] ) && array_key_exists( $layout['justifyContent'], $justify_content_options ) ) {
$layout_styles[] = array(
Expand Down

0 comments on commit 88899c8

Please sign in to comment.