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

Disable flex-shrink on .FormField-checkInput #2

Merged
merged 1 commit into from
Jul 15, 2020

Conversation

AlecRust
Copy link
Collaborator

@AlecRust AlecRust commented Jul 15, 2020

Current Problem

When text in a checkbox or radio label is so long that it wraps to multiple lines, the more it wraps the more the input is reduced in size by Flexbox.

Have only seen this happen in Mobile Safari.

Solution

Add flex-shrink: 0 to .FormField-checkInput to prevent the squishing.

Screenshots

Before:
before screenshot

After:
after screenshot

@simonsmith
Copy link
Owner

Heh nice spot. Been having this exact issue in other components recently!

@simonsmith simonsmith merged commit 4861a9a into simonsmith:master Jul 15, 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.

2 participants