Skip to content

Commit 1fa0e1b

Browse files
committed
replaced buttons with muc-buttons
1 parent e6ebb92 commit 1fa0e1b

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

src/components/Slider/MucSlider.vue

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,12 @@
1111
aria-label="Slider mit Elementen"
1212
data-m-slider-splide="m-slider-comment"
1313
>
14-
<button
14+
<muc-button
1515
v-if="showBackArrow"
16-
aria-label="Vorheriges Element"
1716
class="previous-button is-control"
17+
icon="arrow-left"
1818
@click="prevSlide"
19-
>
20-
<svg class="icon">
21-
<use xlink:href="#icon-arrow-left"></use>
22-
</svg>
23-
</button>
19+
/>
2420
<Splide
2521
:options="sliderOptions"
2622
aria-label="Dies ist ein Karussell mit rotierenden Elementen. Verwenden Sie
@@ -29,16 +25,12 @@
2925
>
3026
<slot />
3127
</Splide>
32-
<button
28+
<muc-button
3329
v-if="showNextArrow"
34-
aria-label="Nächstes Element"
3530
class="next-button is-control"
31+
icon="arrow-right"
3632
@click="nextSlide"
37-
>
38-
<svg class="icon">
39-
<use xlink:href="#icon-arrow-right"></use>
40-
</svg>
41-
</button>
33+
/>
4234
</section>
4335
</div>
4436
</div>
@@ -52,6 +44,8 @@ import type { Options } from "@splidejs/splide";
5244
import { Splide } from "@splidejs/vue-splide";
5345
import { computed, onMounted, ref } from "vue";
5446
47+
import { MucButton } from "../Button";
48+
5549
defineSlots<{
5650
/**
5751
* MucSliderItems can be put into this slot.

0 commit comments

Comments
 (0)