Skip to content

Commit

Permalink
Fix: align-vert-center to work with block min-heights (adaptlearning#405
Browse files Browse the repository at this point in the history
)
  • Loading branch information
swashbuck authored Apr 17, 2023
1 parent 0cc05d0 commit aef4e21
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion less/core/block.less
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@
&.remove-padding-bottom &__inner { padding-bottom: 0; }

// Aligns child components centrally on the vertical axis
&.align-vert-center .component__container { align-items: center; }
&.align-vert-center {
.block__inner,
.component__container {
min-height: inherit;
}
.component__container {
align-items: center;
}
}

// Aligns child components to the bottom of the parent block on the vertical axis
&.align-vert-bottom .component__container {align-items: flex-end; }
Expand Down

0 comments on commit aef4e21

Please sign in to comment.