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

RadioButton's children maybe not aligned in vertical direction. #26

Closed
joint-song opened this issue Jul 4, 2016 · 4 comments
Closed

Comments

@joint-song
Copy link

RadioButtonInput would not be aligned with RadioButtonLabel in vertical direction. Caused by radioLabel: 20 style.

@joint-song
Copy link
Author

I fixed it.

<RadioButton
    {...otherProps}
    labelStyle={{ fontSize: 15, lineHeight: 15 }}/>

but lineHeight style is not necessary i think.

@moschan
Copy link
Owner

moschan commented Jul 4, 2016

@joint-song
Thank you for your issue.

I will check 😺

@moschan
Copy link
Owner

moschan commented Aug 9, 2016

Looks good. Was it fine?
I will clear up this component in the near future. 😸

If you have any problem about this, please reopen this.

Thank you

@moschan moschan closed this as completed Aug 9, 2016
@donni106
Copy link

donni106 commented Aug 1, 2017

It works fine with setting fontSize and lineHeight for iOS. On Android the radio and the label are not aligned. Tried to play with buttonStyle and buttonWrapStyle but did not help.

Usage example:

<RadioForm
  ...
  style={{ alignItems: 'flex-start' }}
  labelStyle={{ fontSize: 50, lineHeight: 70, marginLeft: 30 }}
/>

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

No branches or pull requests

3 participants