Skip to content

Commit

Permalink
chore(storefront): Removing <Carousel> controls by default when not m…
Browse files Browse the repository at this point in the history
…ore than one slide
  • Loading branch information
leomp12 committed Oct 6, 2023
1 parent 017d5c9 commit 7feec21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/storefront/src/lib/components/Carousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@ provide(carouselKey, {
activeIndex,
}"
>
<CarouselControl v-show="slideSizes.length > 1 || hasControls" is-prev>
<CarouselControl v-if="slideSizes.length > 1 || hasControls" is-prev>
<slot name="previous" />
</CarouselControl>
<CarouselControl v-show="slideSizes.length > 1 || hasControls">
<CarouselControl v-if="slideSizes.length > 1 || hasControls">
<slot name="next" />
</CarouselControl>
</slot>
Expand Down

0 comments on commit 7feec21

Please sign in to comment.