Skip to content

Commit

Permalink
Adding styling for loading state.
Browse files Browse the repository at this point in the history
  • Loading branch information
erinesullivan committed Nov 12, 2024
1 parent b3cdb92 commit fab07c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/modules/reusable/components/ImagePlaceholder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ImagePlaceholder = ({ alt, index, src, ...rest }) => {

{imageState === 'loading' && (
<div
className='image-placeholder'
className='image-placeholder placeholder margin-bottom__none'
{...rest}
>
<div className='content' />
Expand Down
5 changes: 2 additions & 3 deletions src/modules/reusable/components/ImagePlaceholder/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
}

.image-placeholder .content {
height: 100%;
left: 0;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* Any other styling you need */
}

0 comments on commit fab07c4

Please sign in to comment.