Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTL Support #1008

Open
3 tasks done
TheGooner93 opened this issue Apr 6, 2023 · 1 comment
Open
3 tasks done

RTL Support #1008

TheGooner93 opened this issue Apr 6, 2023 · 1 comment

Comments

@TheGooner93
Copy link

Bugs and Questions

Prerequisites

  • I've searched open issues to make sure I'm not opening a duplicate issue
  • I have read through the docs before asking a question
  • I am using the latest version of nuka-carousel

Describe Your Environment

  • What version of nuka-carousel are you using? 5.5.1
  • What version of React are you using? 18.2.0
  • What browser are you using? Chrome

Describe the Problem

Setting direction:rtl on document.body seems to break slide navigation.
Reproducible on https://nuka-carousel-jz0747srr-nuka-carousel.vercel.app/

Expected behavior:

Being able to navigate from right to left when direction:rtl is set on

Actual behavior

Only the first slide is visible, on clicking on the "next slide" button, a blank slide is displayed

Additional Information

Demo:

Screen.Recording.2023-04-06.at.12.44.23.PM.mov
@TheGooner93 TheGooner93 changed the title Wonky RTL Support RTL Support Apr 10, 2023
@esla-ahme
Copy link

I had the same problem
Work around: wrap it in div and set dir to ltr

Id the item inside needs to be rtl wrap it also in a div thar inherits body dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants