-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
[css] carousel buttons error in RTL #37180
Comments
What do you expect exactly? RTL carousel first item is on the right and the last on the left, next button is on the left and prev on the right. I think that's the intended behavior for this feature. Am I missing something? |
@ffoodd, if you compare the carousel examples (the normal one with the RTL one), you see that
|
Aah yeah I see, in LTR translate follows arrows but in RTL it goes to the opposite. |
Prerequisites
Describe the issue
In RTL bootstrap carousel, prev and next buttons have inverted functions, prev takes to next and next takes to previous.
It can be seen in the official bootstrap rtl carousel example
Reduced test cases
https://getbootstrap.com/docs/5.2/examples/carousel-rtl/
The fix I found is inverting the 'translateX()' values in the bootstrao.rtl.css file (and by extension other files using the same css code)
--Code before change:
--Code after change:
This section of code begins in the file bootstrap.rtl.css at line 5847 as of the current version
bootstrap/dist/css/bootstrap.rtl.css
Line 5847 in d0117a1
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
v5.0.2
The text was updated successfully, but these errors were encountered: