Skip to content

Commit c6679b5

Browse files
committed
#101 : Update button styles
1 parent bfa295e commit c6679b5

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

src/components/Arrow/Arrow.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</script>
1414

1515
<button
16-
class="sc-carousel-arrow__circle"
16+
class="sc-carousel-button sc-carousel-arrow__circle"
1717
class:sc-carousel-arrow__circle_disabled={disabled}
1818
on:click
1919
>

src/components/Carousel/Carousel.svelte

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,4 +368,11 @@
368368
position: absolute;
369369
bottom: 0;
370370
}
371+
:global(.sc-carousel-button) {
372+
all: unset;
373+
cursor: pointer;
374+
}
375+
:global(.sc-carousel-button:focus) {
376+
outline: 5px auto;
377+
}
371378
</style>

src/components/Dot/Dot.svelte

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</script>
77

88
<button
9-
class="sc-carousel-dot__dot"
9+
class="sc-carousel-button sc-carousel-dot__dot"
1010
class:sc-carousel-dot__dot_active={active}
1111
on:click
1212
></button>
@@ -18,16 +18,6 @@
1818
--sc-dot-size-animation-time: 250ms;
1919
}
2020
21-
button {
22-
all: unset;
23-
cursor: pointer;
24-
}
25-
26-
button:focus {
27-
outline: 1px dotted #212121;
28-
outline: 5px auto -webkit-focus-ring-color;
29-
}
30-
3121
.sc-carousel-dot__dot {
3222
background-color: var(--sc-color-rgb-light);
3323
border-radius: 50%;

0 commit comments

Comments
 (0)