Skip to content

Commit

Permalink
Adds back in icon and title for gallery block (#27293)
Browse files Browse the repository at this point in the history
* Brings back title and icon for gallery block

* Brings back title and icon for gallery block

* Removes entire block of CSS that's potentially not required

* Better refactor - props @jasmussen
  • Loading branch information
Tammie Lister authored Nov 26, 2020
1 parent 99b4378 commit ac9029c
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions packages/block-library/src/gallery/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@
list-style-type: none;
}

// @todo: this deserves a refactor, by being moved to the toolbar.
.block-editor-media-placeholder {
padding: $grid-unit-15;

// This element is empty here anyway.
.components-placeholder__label {
display: none;
.wp-block-gallery {
// Override the default list style type _only in the editor_
// to avoid :not() selector specificity issues.
// See https://github.com/WordPress/gutenberg/pull/10358
li {
list-style-type: none;
}

.components-button {
margin-bottom: 0;
// @todo: this deserves a refactor, by being moved to the toolbar.
.block-editor-media-placeholder.is-appender {
.components-placeholder__label {
display: none;
}
.block-editor-media-placeholder__button {
margin-bottom: 0;
}
}
}
}
Expand Down

0 comments on commit ac9029c

Please sign in to comment.