1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-09 09:51:02 +01:00

[PM-9646] Identity v2 Edit Defects (#10076)

* add necessary module to identity. update toggle btn with testing attr
This commit is contained in:
Jason Ng 2024-07-11 18:47:54 -04:00 committed by GitHub
parent 66f432d6e0
commit d7fa592521
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 2 deletions

View File

@ -53,14 +53,26 @@
{{ "ssn" | i18n }}
</bit-label>
<input formControlName="ssn" bitInput type="password" />
<button type="button" bitIconButton bitPasswordInputToggle></button>
<button
type="button"
bitIconButton
bitSuffix
bitPasswordInputToggle
data-testid="visibility-for-ssn"
></button>
</bit-form-field>
<bit-form-field>
<bit-label>
{{ "passportNumber" | i18n }}
</bit-label>
<input formControlName="passportNumber" bitInput type="password" />
<button type="button" bitIconButton bitPasswordInputToggle></button>
<button
type="button"
bitIconButton
bitSuffix
bitPasswordInputToggle
data-testid="visibility-for-passport-number"
></button>
</bit-form-field>
<bit-form-field>
<bit-label>

View File

@ -15,6 +15,7 @@ import {
FormFieldModule,
IconButtonModule,
SelectModule,
TypographyModule,
} from "@bitwarden/components";
import { CipherFormContainer } from "../../cipher-form-container";
@ -34,6 +35,7 @@ import { CipherFormContainer } from "../../cipher-form-container";
FormFieldModule,
IconButtonModule,
SelectModule,
TypographyModule,
],
})
export class IdentitySectionComponent implements OnInit {