Skip to content

Commit

Permalink
optimized the experience mosaic reveal
Browse files Browse the repository at this point in the history
  • Loading branch information
anu13297 committed Feb 10, 2025
1 parent 4e2b038 commit 527e29b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions eds/blocks/mosaic-reveal/mosaic-reveal.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
display: flex;
flex-direction: column;
inline-size: 100%;
inset-block-start: 0;
inset-block-end: 0;
inset-inline-start: 0;
justify-content: center;
opacity: 1;
Expand Down Expand Up @@ -101,14 +101,14 @@
}

.mosaic-reveal .mosaic-reveal-content[aria-hidden="true"] {
inset-block-start: 100%;
block-size: 0;
opacity: 0;
pointer-events: none;
visibility: hidden;
}

.mosaic-reveal > div { /* stylelint-disable-line no-descending-specificity */
overflow: hidden;
overflow: unset;
position: relative;
}

Expand Down
1 change: 0 additions & 1 deletion eds/blocks/mosaic-reveal/mosaic-reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export default function decorate(block) {
child.dispatchEvent(event);
});
});
block.appendChild(revealContent);

block.querySelectorAll('.mosaic-reveal-content').forEach((content) => {
content.insertBefore(div({ class: 'content-bg' }), content.firstChild);
Expand Down

0 comments on commit 527e29b

Please sign in to comment.