Skip to content

Commit

Permalink
Remove redundant css selector (#34277)
Browse files Browse the repository at this point in the history
Co-authored-by: Glen Davies <[email protected]>
  • Loading branch information
glendaviesnz and Glen Davies authored Sep 6, 2021
1 parent 3116f9c commit 63ffde2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/gallery/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function saveWithInnerBlocks( { attributes } ) {

const { caption, columns, imageCrop } = attributes;

const className = classnames( 'blocks-gallery-grid', 'has-nested-images', {
const className = classnames( 'has-nested-images', {
[ `columns-${ columns }` ]: columns !== undefined,
[ `columns-default` ]: columns === undefined,
'is-cropped': imageCrop,
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/gallery/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "./deprecated.scss";

// Styles for current version of gallery block.
.wp-block-gallery.blocks-gallery-grid.has-nested-images {
.wp-block-gallery.has-nested-images {
display: flex;
flex-wrap: wrap;
// Need bogus :not(#individual-image) to override long :not()
Expand Down

0 comments on commit 63ffde2

Please sign in to comment.