Skip to content

Commit

Permalink
fix(esl-carousel): add possibility to hide controls according to clos…
Browse files Browse the repository at this point in the history
…est container state
  • Loading branch information
ala-n committed Jun 20, 2024
1 parent d8a7e25 commit b941748
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/esl-carousel/core/esl-carousel.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ esl-carousel {
}

[esl-carousel-container] {
--esl-carousel-control-visibility: visible;
--esl-carousel-side-space: 5px;
position: relative;
}

[esl-carousel-container][incomplete] {
--esl-carousel-control-visibility: hidden;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
top: 50%;
transform: translateY(-50%);

visibility: var(--esl-carousel-control-visibility, visible);

display: grid;
place-content: center;

Expand Down

0 comments on commit b941748

Please sign in to comment.