Skip to content

Commit

Permalink
Handle default z-index in cover block
Browse files Browse the repository at this point in the history
  • Loading branch information
roborourke committed Sep 5, 2024
1 parent f3e3b85 commit c61593a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/lottie-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/lottie.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'f395b5b0f8626960462c');
<?php return array('dependencies' => array(), 'version' => '669de2d941d2e967a675');
2 changes: 1 addition & 1 deletion build/lottie.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion src/lottie.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@
width: 100%;
height: auto;
max-width: 100%;
z-index: 2; /* Modest z-index by default, but may need to be overridden for other cases. */
/* Modest z-index by default for overlay, but may need to be overridden for other cases. */
z-index: 2;
}

.wp-block-cover[data-lottie] .wp-block-cover__inner-container,
.wp-block-cover-image[data-lottie] .wp-block-cover__inner-container {
z-index: 3;
}

0 comments on commit c61593a

Please sign in to comment.