diff --git a/src/components/carousel/carousel.component.ts b/src/components/carousel/carousel.component.ts index 78547576..e1204736 100644 --- a/src/components/carousel/carousel.component.ts +++ b/src/components/carousel/carousel.component.ts @@ -488,7 +488,7 @@ export default class SlCarousel extends ShoelaceElement { const currentPage = this.getCurrentPage(); const prevEnabled = this.canScrollPrev(); const nextEnabled = this.canScrollNext(); - const isLtr = this.localize.dir() === 'ltr'; + const isLtr = this.matches(':dir(ltr)'); return html`