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 - swap elements #69

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Bilal-Abdeen
Copy link

@Bilal-Abdeen Bilal-Abdeen commented Mar 6, 2024

This fixes #68
Phone numbers (like any number) should be written LTR (Left-to-Right) regardless of the language.

In the component of this library, in RTL (Right-to-Left) mode, the country code (and flag) are displayed on the right side and the phone number on the left side of the screen.

Based on the value of an RTL property, the order of the components is changed.

Obviously, the property "rtl" needs to be added to the props list in the readme file.

Phone numbers (like any number) should be written LTR (Left-to-Right) regardless of the language.

In the component of this library, in RTL (Right-to-Left) mode, the country code (and flag) are displayed on the right side and the phone number on the left side of the screen. 

Based on the value of an RTL property, the order of the components is changed.
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

Successfully merging this pull request may close these issues.

In RTL mode, phone input element should display LTR
1 participant