Skip to content

Commit 58a04c3

Browse files
committed
Fix dark theme hover on navigation buttons on Testimonial component
1 parent 9e5761e commit 58a04c3

1 file changed

Lines changed: 28 additions & 34 deletions

File tree

‎src/components/Testimonials/index.astro‎

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -112,46 +112,40 @@ const singleTestimonial = shouldRenderSingle ? testimonials.at(0) : undefined
112112
<>
113113
<button
114114
type="button"
115-
class="embla__button embla__button--prev absolute left-0 top-1/2 -translate-y-1/2 -translate-x-4 w-12 h-12 rounded-full bg-content-inverse border-2 border-trim shadow-lg hover:bg-gray-200 hover:border-gray-200 transition-all duration-300 flex items-center justify-center z-(--z-raised) disabled:opacity-30 disabled:cursor-not-allowed focus-visible:outline-none after:pointer-events-none after:absolute after:-inset-0.5 after:rounded-none after:content-[''] focus-visible:after:border-2 focus-visible:after:border-spotlight"
116-
aria-label="Previous testimonial"
115+
class:list={[
116+
"embla__button embla__button--prev",
117+
"absolute w-12 h-12 left-0 top-1/2 -translate-y-1/2 -translate-x-4",
118+
"bg-content-inverse",
119+
"rounded-full border-2 border-trim shadow-lg",
120+
"hover:bg-content-inverse-active hover:border-gray-200",
121+
"transition-all duration-300 flex items-center justify-center z-(--z-raised)",
122+
"disabled:opacity-30 disabled:cursor-not-allowed",
123+
"focus-visible:outline-none focus-visible:after:border-2 focus-visible:after:border-spotlight",
124+
"after:pointer-events-none after:absolute after:-inset-0.5 after:rounded-none after:content-['']"
125+
]}
126+
aria-label="Previous slide"
127+
data-carousel-prev
117128
>
118-
<svg
119-
class="w-6 h-6"
120-
fill="none"
121-
stroke="currentColor"
122-
viewBox="0 0 24 24"
123-
aria-hidden="true"
124-
focusable="false"
125-
>
126-
<path
127-
stroke-linecap="round"
128-
stroke-linejoin="round"
129-
stroke-width="2"
130-
d="M15 19l-7-7 7-7"
131-
/>
132-
</svg>
129+
<Icon icon="arrow-left" size={6} color="currentColor" />
133130
</button>
134131

135132
<button
136133
type="button"
137-
class="embla__button embla__button--next absolute right-0 top-1/2 -translate-y-1/2 translate-x-4 w-12 h-12 rounded-full bg-content-inverse border-2 border-trim shadow-lg hover:bg-gray-200 hover:border-gray-200 transition-all duration-300 flex items-center justify-center z-(--z-raised) disabled:opacity-30 disabled:cursor-not-allowed focus-visible:outline-none after:pointer-events-none after:absolute after:-inset-0.5 after:rounded-none after:content-[''] focus-visible:after:border-2 focus-visible:after:border-spotlight"
138-
aria-label="Next testimonial"
134+
class:list={[
135+
"embla__button embla__button--next",
136+
"absolute w-12 h-12 right-0 top-1/2 -translate-y-1/2 translate-x-4",
137+
"bg-content-inverse",
138+
"rounded-full border-2 border-trim shadow-lg",
139+
"hover:bg-content-inverse-active hover:border-gray-200",
140+
"transition-all duration-300 flex items-center justify-center z-(--z-raised)",
141+
"disabled:opacity-30 disabled:cursor-not-allowed",
142+
"focus-visible:outline-none focus-visible:after:border-2 focus-visible:after:border-spotlight",
143+
"after:pointer-events-none after:absolute after:-inset-0.5 after:rounded-none after:content-['']"
144+
]}
145+
aria-label="Next slide"
146+
data-carousel-next
139147
>
140-
<svg
141-
class="w-6 h-6"
142-
fill="none"
143-
stroke="currentColor"
144-
viewBox="0 0 24 24"
145-
aria-hidden="true"
146-
focusable="false"
147-
>
148-
<path
149-
stroke-linecap="round"
150-
stroke-linejoin="round"
151-
stroke-width="2"
152-
d="M9 5l7 7-7 7"
153-
/>
154-
</svg>
148+
<Icon icon="arrow-right" size={6} color="currentColor" />
155149
</button>
156150

157151
{showControls && (

0 commit comments

Comments
 (0)