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

Radio buttons inline #47

Open
gilnetoglartek opened this issue Feb 22, 2018 · 3 comments
Open

Radio buttons inline #47

gilnetoglartek opened this issue Feb 22, 2018 · 3 comments

Comments

@gilnetoglartek
Copy link

I'm having an issue where I have a RadioGroup with two Radio objects inside. They appear like so:
image

I need them to appear vertically, like so:
image
This was achieved by editing the label element inside the browser.

Where can I edit these settings specifically?
This is the DOM structure in runtime:
image

Thanks

@iamkhush
Copy link

Use <div className="clearfix"></div> between the radio buttons.

@gilnetoglartek
Copy link
Author

It worked. Thanks.

@ojha007
Copy link

ojha007 commented Dec 22, 2020

How to add <div className="clearfix"></div> to display vertically
`
{
props.options &&
props.options.map((value, key) => (
<Radio
style={{
display: 'block'
}}
id={value}
key={key}
radioClass="iradio_square-blue"
increaseArea="20%"
type="radio"
label={
<span style={{padding: '1em'}}>
{
value.charAt(0).toUpperCase() + value.substring(1)
}

}
value={value}
onClick={props.handleChange}
/>
)
)

                }`

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