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:
parent
8143222f92
commit
cd11f90f8f
@ -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={
|
||||||
|
@ -41,6 +41,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__terms-label {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
.form-field__input {
|
.form-field__input {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user