Skip to content

Commit

Permalink
fix(esl-carousel): it is impossible to use cascading of css variable …
Browse files Browse the repository at this point in the history
…properly to define dots styles on the carousel level
  • Loading branch information
ala-n committed Apr 16, 2024
1 parent 8fd173e commit d361295
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/modules/esl-carousel/plugin/dots/esl-carousel.nav.dots.less
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/* ESLCarouselNavDots default styles */
.esl-carousel-dots {
--esl-carousel-dot-color: rgba(118, 118, 118, 0.5);
--esl-carousel-dot-border: 1px solid transparent;
--esl-carousel-dot-active-color: rgba(255, 255, 255, 0.5);
--esl-carousel-dot-active-border: 1px solid #bababa;

display: flex;
align-items: center;
width: fit-content;
Expand All @@ -29,12 +24,14 @@
appearance: none;

&:is(*, :focus, :active, :hover) {
border: var(--esl-carousel-dot-border);
background: var(--esl-carousel-dot-color) content-box;
border: var(--esl-carousel-dot-border, 1px solid transparent);
background: var(--esl-carousel-dot-color, rgba(118, 118, 118, 0.5));
background-clip: content-box;
}

&[active] {
border: var(--esl-carousel-dot-active-border);
background: var(--esl-carousel-dot-active-color);
border: var(--esl-carousel-dot-active-border, 1px solid #bababa);
background: var(--esl-carousel-dot-active-color, rgba(255, 255, 255, 0.5));
background-clip: content-box;
}
}

0 comments on commit d361295

Please sign in to comment.