Skip to content

Commit

Permalink
Fix list block not properly aligned (#21971)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored and aduth committed Apr 29, 2020
1 parent e184281 commit e081588
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,13 @@
}
}

.wp-block {
// Extra specificity needed to override default element margins like lists (ul).
.block-editor-block-list__layout .wp-block {
margin-left: auto;
margin-right: auto;
}

.wp-block {
// Alignments.
&[data-align="left"],
&[data-align="right"] {
Expand Down

0 comments on commit e081588

Please sign in to comment.