diff --git a/src/ssr-carousel-track.vue b/src/ssr-carousel-track.vue index 2c4dbb7..2bad3be 100644 --- a/src/ssr-carousel-track.vue +++ b/src/ssr-carousel-track.vue @@ -173,8 +173,11 @@ export default render: (create) -> create @trackHTMLElement, attrs: {role: "tablist" if @renderAsTablist} - class: [ 'ssr-carousel-track', { @dragging } ] style: @styles + class: [ 'ssr-carousel-track', { + @dragging + "ssr-carousel-rtl": @rtl + }] , @makeSlides() @@ -199,6 +202,10 @@ export default .ssr-carousel-slide flex-shrink 0 + // Apply direction property which was reset in .ssr-carousel + .ssr-carousel-rtl & + direction rtl + // When the carousel is disabled (not enough slides to fill width), hide any // clones that have created for other breakpoints (those with aria-hidden=true). .ssr-carousel-mask.disabled .ssr-carousel-slide[aria-hidden='true']