1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix #16804 - Onboarding - Prevent odd behavior with clicks and show/hide password (#16878)

This commit is contained in:
David Walsh 2022-12-12 08:36:02 -06:00 committed by GitHub
parent 4d4e487ffc
commit dcffa4c7bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 13 deletions

View File

@ -89,7 +89,6 @@ export default function FormField({
<Box
className="form-field__heading-detail"
textAlign={TEXT_ALIGN.END}
marginBottom={3}
marginRight={2}
{...titleDetailWrapperProps}
>

View File

@ -182,16 +182,18 @@ export default function CreatePassword({
titleText={t('newPassword')}
value={password}
titleDetail={
<button
className="create-password__form--password-button"
type="button"
onClick={(e) => {
e.preventDefault();
setShowPassword(!showPassword);
}}
>
{showPassword ? t('hide') : t('show')}
</button>
<Typography variant={TYPOGRAPHY.H7}>
<a
href=""
className="create-password__form--password-button"
onClick={(e) => {
e.preventDefault();
setShowPassword(!showPassword);
}}
>
{showPassword ? t('hide') : t('show')}
</a>
</Typography>
}
/>
<FormField

View File

@ -28,8 +28,7 @@
}
&--password-button {
background-color: transparent;
color: var(--color-text-default);
color: var(--color-primary-default);
}
&--checkmark {