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

fix line height bug in iPhone 6/7 #65

Merged
merged 1 commit into from
May 5, 2020

Conversation

reiallenramos
Copy link
Contributor

Problem

text in input are cut off in iPhone 7 and lower

Closes #3

Solution

specify input height

Before & After Screenshots

BEFORE:
before

AFTER:
after

Notes:
Checked desktop behavior to ensure it still works.
desktop

@reiallenramos reiallenramos changed the title fix line height bug in iPhone 6/7 (#3) fix line height bug in iPhone 6/7 May 5, 2020
@liangyuanruo liangyuanruo requested a review from kylerwsm May 5, 2020 08:14
Copy link
Contributor

@kylerwsm kylerwsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the proposed fix, however, I noticed that if the text field is empty, it will look like the below screenshot, with the start adornment and textfield placeholder text slightly misaligned. I believe this is because of the difference in line-height of the two elements. Adding a line-height: 1.5 in the input object in styles/CreateUrlModal.js should solve this issue.

Since you are on it, can you look into that? Thanks!

Screenshot 2020-05-05 at 4 44 45 PM

@reiallenramos
Copy link
Contributor Author

Thanks! Should be okay now 😸

Copy link
Contributor

@kylerwsm kylerwsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@kylerwsm kylerwsm merged commit 0c95ec4 into opengovsg:develop May 5, 2020
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.

Words in text boxes got cut off on iphone7
2 participants