Skip to content

Commit

Permalink
Merge pull request #140 from BKWLD/fix-rtl-direction-in-track
Browse files Browse the repository at this point in the history
Move rtl direction from carousel-slide to carousel-track
  • Loading branch information
azerozvn authored Feb 6, 2024
2 parents 7de39ba + b828a17 commit 1930286
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ssr-carousel-track.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,14 @@ export default
&.dragging
pointer-events none

// Apply direction property which was reset in .ssr-carousel
&.ssr-carousel-rtl
direction rtl

// Force the slides to not shrink below their basis
.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']
Expand Down

0 comments on commit 1930286

Please sign in to comment.