mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Add labels to provide better accessibility during onboarding v2 (#13890)
This commit is contained in:
parent
8143222f92
commit
cd11f90f8f
@ -216,26 +216,28 @@ export default function CreatePassword({
|
||||
justifyContent={JUSTIFY_CONTENT.SPACE_BETWEEN}
|
||||
marginBottom={4}
|
||||
>
|
||||
<CheckBox
|
||||
dataTestId="create-password-terms"
|
||||
onClick={() => setTermsChecked(!termsChecked)}
|
||||
checked={termsChecked}
|
||||
/>
|
||||
<Typography variant={TYPOGRAPHY.H5} boxProps={{ marginLeft: 3 }}>
|
||||
{t('passwordTermsWarning', [
|
||||
<a
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
key="create-password__link-text"
|
||||
href={ZENDESK_URLS.PASSWORD_ARTICLE}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<span className="create-password__link-text">
|
||||
{t('learnMoreUpperCase')}
|
||||
</span>
|
||||
</a>,
|
||||
])}
|
||||
</Typography>
|
||||
<label className="create-password__form__terms-label">
|
||||
<CheckBox
|
||||
dataTestId="create-password-terms"
|
||||
onClick={() => setTermsChecked(!termsChecked)}
|
||||
checked={termsChecked}
|
||||
/>
|
||||
<Typography variant={TYPOGRAPHY.H5} boxProps={{ marginLeft: 3 }}>
|
||||
{t('passwordTermsWarning', [
|
||||
<a
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
key="create-password__link-text"
|
||||
href={ZENDESK_URLS.PASSWORD_ARTICLE}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<span className="create-password__link-text">
|
||||
{t('learnMoreUpperCase')}
|
||||
</span>
|
||||
</a>,
|
||||
])}
|
||||
</Typography>
|
||||
</label>
|
||||
</Box>
|
||||
<Button
|
||||
data-testid={
|
||||
|
@ -41,6 +41,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
&__terms-label {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.form-field__input {
|
||||
height: 50px;
|
||||
}
|
||||
|
@ -39,6 +39,10 @@
|
||||
margin: 8px 12px 0 0;
|
||||
}
|
||||
|
||||
&__label {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
&__footer {
|
||||
button {
|
||||
width: 140px;
|
||||
|
@ -55,20 +55,20 @@ export default function SkipSRPBackup({ handleClose }) {
|
||||
{t('skipAccountSecurity')}
|
||||
</Typography>
|
||||
<Box justifyContent={JUSTIFY_CONTENT.CENTER} margin={3}>
|
||||
<Checkbox
|
||||
className="skip-srp-backup-popover__checkbox"
|
||||
onClick={() => {
|
||||
setChecked(!checked);
|
||||
}}
|
||||
checked={checked}
|
||||
dataTestId="skip-srp-backup-popover-checkbox"
|
||||
/>
|
||||
<Typography
|
||||
className="skip-srp-backup-popover__details"
|
||||
variant={TYPOGRAPHY.h7}
|
||||
>
|
||||
{t('skipAccountSecurityDetails')}
|
||||
</Typography>
|
||||
<label className="skip-srp-backup-popover__label">
|
||||
<Checkbox
|
||||
className="skip-srp-backup-popover__checkbox"
|
||||
onClick={() => setChecked(!checked)}
|
||||
checked={checked}
|
||||
dataTestId="skip-srp-backup-popover-checkbox"
|
||||
/>
|
||||
<Typography
|
||||
className="skip-srp-backup-popover__details"
|
||||
variant={TYPOGRAPHY.h7}
|
||||
>
|
||||
{t('skipAccountSecurityDetails')}
|
||||
</Typography>
|
||||
</label>
|
||||
</Box>
|
||||
</Box>
|
||||
</Popover>
|
||||
|
Loading…
Reference in New Issue
Block a user