-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: segment not respecting rtl when dir set on host element #23978
Comments
Thanks for the issue. I can reproduce this behavior. This line looks to be the culprit: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/segment/segment.tsx#L310. We determine RTL by looking at the |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prequisites
Ionic Framework Version
Current Behavior
When layout is RTL the swipeGesture goes far left to the end when swiped right, and goes far right to the end when swiped left.
Expected Behavior
Behave the correct way as in LTR.
Steps to Reproduce
Create an
ion-segment
with attributedir="rtl"
, then add fewion-segment-buttons
inside of it and try swiping.Code Reproduction URL
No response
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: