1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Add labels to provide better accessibility during onboarding v2 (#13890)

This commit is contained in:
David Walsh 2022-03-14 20:27:02 -05:00 committed by GitHub
parent 8143222f92
commit cd11f90f8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 34 deletions

View File

@ -216,6 +216,7 @@ export default function CreatePassword({
justifyContent={JUSTIFY_CONTENT.SPACE_BETWEEN} justifyContent={JUSTIFY_CONTENT.SPACE_BETWEEN}
marginBottom={4} marginBottom={4}
> >
<label className="create-password__form__terms-label">
<CheckBox <CheckBox
dataTestId="create-password-terms" dataTestId="create-password-terms"
onClick={() => setTermsChecked(!termsChecked)} onClick={() => setTermsChecked(!termsChecked)}
@ -236,6 +237,7 @@ export default function CreatePassword({
</a>, </a>,
])} ])}
</Typography> </Typography>
</label>
</Box> </Box>
<Button <Button
data-testid={ data-testid={

View File

@ -41,6 +41,10 @@
} }
} }
&__terms-label {
display: flex;
}
.form-field__input { .form-field__input {
height: 50px; height: 50px;
} }

View File

@ -39,6 +39,10 @@
margin: 8px 12px 0 0; margin: 8px 12px 0 0;
} }
&__label {
display: flex;
}
&__footer { &__footer {
button { button {
width: 140px; width: 140px;

View File

@ -55,11 +55,10 @@ export default function SkipSRPBackup({ handleClose }) {
{t('skipAccountSecurity')} {t('skipAccountSecurity')}
</Typography> </Typography>
<Box justifyContent={JUSTIFY_CONTENT.CENTER} margin={3}> <Box justifyContent={JUSTIFY_CONTENT.CENTER} margin={3}>
<label className="skip-srp-backup-popover__label">
<Checkbox <Checkbox
className="skip-srp-backup-popover__checkbox" className="skip-srp-backup-popover__checkbox"
onClick={() => { onClick={() => setChecked(!checked)}
setChecked(!checked);
}}
checked={checked} checked={checked}
dataTestId="skip-srp-backup-popover-checkbox" dataTestId="skip-srp-backup-popover-checkbox"
/> />
@ -69,6 +68,7 @@ export default function SkipSRPBackup({ handleClose }) {
> >
{t('skipAccountSecurityDetails')} {t('skipAccountSecurityDetails')}
</Typography> </Typography>
</label>
</Box> </Box>
</Box> </Box>
</Popover> </Popover>