Skip to content

Commit

Permalink
VKT(Frontend): PublicEnrollmentContactStepper set text field width
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoivisto committed Dec 18, 2024
1 parent f610d26 commit 7eb2895
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,19 @@ export const ExamSelection = ({
)}
</FormControl>
<Collapse in={enrollment.isFullExam === false}>
<LabeledTextField
id="public-enrollment-contact__partial-exam-selection--textField"
label={t('selectExams.heading')}
placeholder={t('selectExams.description')}
value={enrollment.partialExamSelection || ''}
onBlur={handlePartialExamSelectionBlur}
onChange={handlePartialExamSelectionChange}
error={hasPartialExamSelectionError}
helperText={translateCommon('errors.customTextField.required')}
disabled={editingDisabled}
fullWidth
/>
<div className="public-enrollment-contact__grid__textfield-container">
<LabeledTextField
id="public-enrollment-contact__partial-exam-selection--textField"
label={t('selectExams.heading')}
placeholder={t('selectExams.description')}
value={enrollment.partialExamSelection || ''}
onBlur={handlePartialExamSelectionBlur}
onChange={handlePartialExamSelectionChange}
error={hasPartialExamSelectionError}
helperText={translateCommon('errors.customTextField.required')}
disabled={editingDisabled}
/>
</div>
</Collapse>
</div>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ export const Message = ({
<div className="public-enrollment-contact__grid__phone-extra-margin margin-top-sm rows gapped">
<H2>{t('title')}</H2>
</div>
<div className="public-enrollment-contact__grid__phone-extra-margin public-enrollment-contact__grid__previous-enrollment rows gapped">
<div className="public-enrollment-contact__grid__phone-extra-margin public-enrollment-contact__grid__textfield-container rows gapped">
<div className="margin-top-sm grow full-max-width">
<LabeledTextField
className="public-enrollment-contact__grid__previous-enrollment__textField"
id="public-enrollment__previous-enrollment__textField"
className="public-enrollment-contact__grid__textfield-container__textField"
id="public-enrollment__message__textField"
label={t('textField.label')}
placeholder={t('textField.placeholder')}
value={enrollment.message}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
}
}

&__previous-enrollment {
&__textfield-container {
width: 70%;

@include phone {
Expand Down

0 comments on commit 7eb2895

Please sign in to comment.