mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge pull request #1096 from mewtaylor/issue/gh-962
Fix GH-962: use width for radio buttons, not margin
This commit is contained in:
commit
72978cb98a
2 changed files with 25 additions and 23 deletions
|
@ -360,24 +360,24 @@ module.exports = {
|
|||
options={[
|
||||
{value: 'female', label: formatMessage({id: 'general.female'})},
|
||||
{value: 'male', label: formatMessage({id: 'general.male'})},
|
||||
{value: 'other', label: ''}
|
||||
{value: 'other', label: <Input
|
||||
className="demographics-step-input-other"
|
||||
name="user.genderOther"
|
||||
type="text"
|
||||
validations={{
|
||||
maxLength: 25
|
||||
}}
|
||||
validationErrors={{
|
||||
maxLength: formatMessage({
|
||||
id: 'registration.validationMaxLength'
|
||||
})
|
||||
}}
|
||||
disabled={this.state.otherDisabled}
|
||||
required={!this.state.otherDisabled}
|
||||
help={null}
|
||||
/>}
|
||||
]}
|
||||
required />
|
||||
<div className="gender-input">
|
||||
<Input name="user.genderOther"
|
||||
type="text"
|
||||
validations={{
|
||||
maxLength: 25
|
||||
}}
|
||||
validationErrors={{
|
||||
maxLength: formatMessage({
|
||||
id: 'registration.validationMaxLength'
|
||||
})
|
||||
}}
|
||||
disabled={this.state.otherDisabled}
|
||||
required={!this.state.otherDisabled}
|
||||
help={null} />
|
||||
</div>
|
||||
<Select label={formatMessage({id: 'general.country'})}
|
||||
name="user.country"
|
||||
options={getCountryOptions(this.props.intl, DEFAULT_COUNTRY)}
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.gender-input,
|
||||
.other-input {
|
||||
float: right;
|
||||
width: 90%;
|
||||
|
@ -61,18 +60,21 @@
|
|||
}
|
||||
|
||||
&.demographics-step {
|
||||
.gender-input {
|
||||
margin-top: -5.5rem;
|
||||
}
|
||||
|
||||
.radio {
|
||||
margin-right: 2.5rem;
|
||||
line-height: 3rem;
|
||||
margin: 1.5rem 1.5rem 0 0;
|
||||
|
||||
input {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.demographics-step-input-other {
|
||||
display: inline-block;
|
||||
|
||||
.col-sm-9 {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.phone-step {
|
||||
|
|
Loading…
Reference in a new issue