From 62648e7cc31454bd9a41f6145131a1726f88d901 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 1 Oct 2024 16:30:35 -0400 Subject: [PATCH] update check --- src/components/carousel/carousel.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/carousel/carousel.component.ts b/src/components/carousel/carousel.component.ts index 75db0bfe..dcae6044 100644 --- a/src/components/carousel/carousel.component.ts +++ b/src/components/carousel/carousel.component.ts @@ -498,7 +498,7 @@ export default class SlCarousel extends ShoelaceElement { const currentPage = this.getCurrentPage(); const prevEnabled = this.canScrollPrev(); const nextEnabled = this.canScrollNext(); - const isLtr = this.matches(':dir(ltr)'); + const isLtr = this.localize.dir() === 'rtl'; return html`