Merge pull request #1096 from mewtaylor/issue/gh-962

Fix GH-962: use width for radio buttons, not margin
This commit is contained in:
Matthew Taylor 2016-12-06 14:57:42 -05:00 committed by GitHub
commit 72978cb98a
2 changed files with 25 additions and 23 deletions

View file

@ -360,11 +360,9 @@ module.exports = {
options={[ options={[
{value: 'female', label: formatMessage({id: 'general.female'})}, {value: 'female', label: formatMessage({id: 'general.female'})},
{value: 'male', label: formatMessage({id: 'general.male'})}, {value: 'male', label: formatMessage({id: 'general.male'})},
{value: 'other', label: ''} {value: 'other', label: <Input
]} className="demographics-step-input-other"
required /> name="user.genderOther"
<div className="gender-input">
<Input name="user.genderOther"
type="text" type="text"
validations={{ validations={{
maxLength: 25 maxLength: 25
@ -376,8 +374,10 @@ module.exports = {
}} }}
disabled={this.state.otherDisabled} disabled={this.state.otherDisabled}
required={!this.state.otherDisabled} required={!this.state.otherDisabled}
help={null} /> help={null}
</div> />}
]}
required />
<Select label={formatMessage({id: 'general.country'})} <Select label={formatMessage({id: 'general.country'})}
name="user.country" name="user.country"
options={getCountryOptions(this.props.intl, DEFAULT_COUNTRY)} options={getCountryOptions(this.props.intl, DEFAULT_COUNTRY)}

View file

@ -13,7 +13,6 @@
border-radius: 8px; border-radius: 8px;
} }
.gender-input,
.other-input { .other-input {
float: right; float: right;
width: 90%; width: 90%;
@ -61,18 +60,21 @@
} }
&.demographics-step { &.demographics-step {
.gender-input {
margin-top: -5.5rem;
}
.radio { .radio {
margin-right: 2.5rem; margin: 1.5rem 1.5rem 0 0;
line-height: 3rem;
input { input {
margin-right: 1rem; margin-right: 1rem;
} }
} }
.demographics-step-input-other {
display: inline-block;
.col-sm-9 {
display: inline-block;
}
}
} }
&.phone-step { &.phone-step {