Skip to content

Commit

Permalink
Gallery Block: Adding a loading style
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jan 19, 2018
1 parent a4b96f0 commit 7a9ae55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blocks/library/gallery/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
outline: 4px solid $blue-medium-500;
outline-offset: -4px;
}

&.is-transient img {
@include loading_fade;
}
}

.blocks-gallery-item__inline-menu {
Expand Down
1 change: 1 addition & 0 deletions blocks/library/gallery/gallery-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class GalleryImage extends Component {

const className = classnames( {
'is-selected': isSelected,
'is-transient': 0 === url.indexOf( 'blob:' ),
} );

// Disable reason: Each block can be selected by clicking on it and we should keep the same saved markup
Expand Down

0 comments on commit 7a9ae55

Please sign in to comment.