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

Allow relative width for the country dropdown list #565

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

Conversation

WuggyX2
Copy link

@WuggyX2 WuggyX2 commented Aug 11, 2022

Hello,

I made these changes to allow developers to override the dropdown's width with relative lengths like %. Default lengths remain 300px

For example

<div>
  <PhoneInput
    inputStyle={{ width: "100%" }}
    dropdownStyle={{ width: "100%" }}
  />
</div>

I'm not sure if moving the country list outside the flag-dropdown div does break any featrue i'm unaware of.

fix #308

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.

Feature Request : Use em and rem units for responsive design
1 participant