From fd072af265bb3bee6296a2f70d58c8f6f9cf8f92 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 31 Oct 2024 10:24:50 +0300 Subject: [PATCH] Refactor #6690 - For Carousel --- packages/primevue/src/carousel/style/CarouselStyle.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/primevue/src/carousel/style/CarouselStyle.js b/packages/primevue/src/carousel/style/CarouselStyle.js index 5ccd94dd4..b376908ce 100644 --- a/packages/primevue/src/carousel/style/CarouselStyle.js +++ b/packages/primevue/src/carousel/style/CarouselStyle.js @@ -18,6 +18,10 @@ const theme = ({ dt }) => ` gap: ${dt('carousel.content.gap')}; } +.p-carousel-content:dir(rtl) { + flex-direction: row-reverse; +} + .p-carousel-viewport { overflow: hidden; width: 100%; @@ -28,6 +32,10 @@ const theme = ({ dt }) => ` flex-direction: row; } +.p-carousel-item-list:dir(rtl) { + flex-direction: row-reverse; +} + .p-carousel-prev-button, .p-carousel-next-button { align-self: center;