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

feat: preserve white spaces on Web #485

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OlimpiaZurek
Copy link

Add preserveSpacesInLabel property and preserveSpace method to Picker.item in Dropdown (Web only)
In some cases (e.g. Expensify/App#16329) users want to keep whitespace in Picker on Web (same as iOS and Android).

As on the web, a drop-down list is implemented using the element and by default the HTML element merges consecutive spaces into one space and cannot be changed, I added a helper method to achieve this goal and an additional prop based on which the users decide if they want to keep the whitespace or not.

screen

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.

1 participant