mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-12 08:41:31 -05:00
Merge pull request #3181 from benjiwheeler/join-flow-validation-positioning
better validation positioning on birthdate step
This commit is contained in:
commit
687130eacf
4 changed files with 21 additions and 3 deletions
|
@ -24,7 +24,7 @@ const FormikSelect = ({
|
||||||
</option>
|
</option>
|
||||||
));
|
));
|
||||||
return (
|
return (
|
||||||
<div className="select">
|
<div className="select row-with-tooltip">
|
||||||
<Field
|
<Field
|
||||||
className={classNames(
|
className={classNames(
|
||||||
className
|
className
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
min-height: 1rem;
|
min-height: 1rem;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
color: $type-white;
|
color: $type-white;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -110,7 +110,7 @@ class BirthDateStep extends React.Component {
|
||||||
name="birth_month"
|
name="birth_month"
|
||||||
options={birthMonthOptions}
|
options={birthMonthOptions}
|
||||||
validate={this.validateSelect}
|
validate={this.validateSelect}
|
||||||
validationClassName="validation-full-width-input"
|
validationClassName="validation-birthdate-input"
|
||||||
/>
|
/>
|
||||||
<FormikSelect
|
<FormikSelect
|
||||||
className={classNames(
|
className={classNames(
|
||||||
|
@ -122,7 +122,7 @@ class BirthDateStep extends React.Component {
|
||||||
name="birth_year"
|
name="birth_year"
|
||||||
options={birthYearOptions}
|
options={birthYearOptions}
|
||||||
validate={this.validateSelect}
|
validate={this.validateSelect}
|
||||||
validationClassName="validation-full-width-input"
|
validationClassName="validation-birthdate-input"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</JoinFlowStep>
|
</JoinFlowStep>
|
||||||
|
|
|
@ -22,6 +22,23 @@
|
||||||
transform: translate(21.5625rem, 0);
|
transform: translate(21.5625rem, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.validation-birthdate-input {
|
||||||
|
transform: translate(8.75rem, .25rem);
|
||||||
|
width: 7.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media #{$intermediate-and-smaller} {
|
||||||
|
.validation-full-width-input {
|
||||||
|
transform: unset;
|
||||||
|
margin-bottom: .75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.validation-birthdate-input {
|
||||||
|
transform: unset;
|
||||||
|
width: 8rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.select .join-flow-select {
|
.select .join-flow-select {
|
||||||
width: 9.125rem;
|
width: 9.125rem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue