Skip to content

Commit

Permalink
Fix regression with Gallery margin. (#18019)
Browse files Browse the repository at this point in the history
I failed to verify the Gallery block when I approved #17958 (comment) and therefore caused a regression.

This PR adds explicity left margins and paddings to the gallery ul to ensure there isn't any added padding and margin.
  • Loading branch information
jasmussen authored and hypest committed Nov 4, 2019
1 parent ec0e4d7 commit ef6ebbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-library/src/gallery/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ figure.wp-block-gallery {
margin: 0;
}

// need to override default editor ul styles
// Necessary to to override default editor ul styles.
.blocks-gallery-grid.blocks-gallery-grid {
padding-left: 0;
margin-left: 0;
margin-bottom: 0;
}

Expand Down

0 comments on commit ef6ebbd

Please sign in to comment.