The icon's left and right directions are reversed in RTL (right-to-left) mode #2749
Closed
zerdazi-mo
started this conversation in
Translation and localization
Replies: 1 comment
-
The RTL icon direction issue can indeed be resolved by explicitly handling the ltr/rtl states with CSS or framework-specific logic. Fix Confirmed: You can just add this to DayPicker component props
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
In LTR (left-to-right) mode, icons render correctly, but in RTL mode, their directions (left/right) appear reversed. How can I properly customize the icons to work in both LTR and RTL layouts?
Expected Behavior:
Icons should maintain logical orientation in both LTR and RTL (e.g., arrows point the correct way regardless of text direction).
Reproduction Steps:
Set the app/website to RTL mode.
Observe misaligned or mirrored icons (e.g., back/forward arrows).
Request:

Is there a built-in way to handle RTL icon flipping?
If manual adjustments are needed, what’s the recommended approach (CSS, framework-specific fixes, etc.)?
Beta Was this translation helpful? Give feedback.
All reactions