Skip to content

Commit 0f3d998

Browse files
aria
1 parent 9f31d69 commit 0f3d998

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/ui/carousel.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,12 @@ function CarouselPrevious({
193193
className
194194
)}
195195
disabled={!canScrollPrev}
196+
aria-disabled={!canScrollPrev}
196197
onClick={scrollPrev}
197198
{...props}
198199
>
199200
<ArrowLeft />
200-
<span className="sr-only">Previous slide</span>
201+
<span className="sr-only">Previous Post</span>
201202
</Button>
202203
)
203204
}
@@ -223,11 +224,12 @@ function CarouselNext({
223224
className
224225
)}
225226
disabled={!canScrollNext}
227+
aria-disabled={!canScrollNext}
226228
onClick={scrollNext}
227229
{...props}
228230
>
229231
<ArrowRight />
230-
<span className="sr-only">Next slide</span>
232+
<span className="sr-only">Next Post</span>
231233
</Button>
232234
)
233235
}

0 commit comments

Comments
 (0)