diff --git a/blocks/library/gallery/editor.scss b/blocks/library/gallery/editor.scss index 4a69cd818927c3..c6a8d2fa6933b7 100644 --- a/blocks/library/gallery/editor.scss +++ b/blocks/library/gallery/editor.scss @@ -11,14 +11,14 @@ } } -.blocks-gallery-image__inline-menu { +.blocks-gallery-item__inline-menu { padding: 2px; position: absolute; top: 0; right: 0; background-color: $blue-medium-500; display: inline-flex; - z-index: z-index( '.blocks-gallery-image__inline-menu' ); + z-index: z-index( '.blocks-gallery-item__inline-menu' ); .components-button { color: $white; @@ -29,6 +29,6 @@ } } -.blocks-gallery-image__remove { +.blocks-gallery-item__remove { padding: 0; } diff --git a/blocks/library/gallery/gallery-image.js b/blocks/library/gallery/gallery-image.js index a4316cfe1ec6c8..78b538c9d14e1e 100644 --- a/blocks/library/gallery/gallery-image.js +++ b/blocks/library/gallery/gallery-image.js @@ -45,11 +45,11 @@ class GalleryImage extends Component { return (
{ isSelected && -
+
diff --git a/blocks/library/gallery/index.js b/blocks/library/gallery/index.js index 2235bb97cbe17d..63e4875d3fa945 100644 --- a/blocks/library/gallery/index.js +++ b/blocks/library/gallery/index.js @@ -33,7 +33,7 @@ registerBlockType( 'core/gallery', { type: 'array', default: [], source: 'query', - selector: 'ul.wp-block-gallery .blocks-gallery-image img', + selector: 'ul.wp-block-gallery .blocks-gallery-item img', query: { url: { source: 'attribute', @@ -167,7 +167,7 @@ registerBlockType( 'core/gallery', { const img = {; return ( -
  • +
  • { href ? { img } : img }
    @@ -199,7 +199,7 @@ registerBlockType( 'core/gallery', { const img = {; return ( -
  • +
  • { href ? { img } : img }
    diff --git a/blocks/test/fixtures/core__gallery.html b/blocks/test/fixtures/core__gallery.html index 04de21e2d9e31a..ec923b2a360432 100644 --- a/blocks/test/fixtures/core__gallery.html +++ b/blocks/test/fixtures/core__gallery.html @@ -1,11 +1,11 @@