1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00: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
2 changed files with 16 additions and 2 deletions

View File

@@ -53,14 +53,26 @@
{{ "ssn" | i18n }} {{ "ssn" | i18n }}
</bit-label> </bit-label>
<input formControlName="ssn" bitInput type="password" /> <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-form-field> <bit-form-field>
<bit-label> <bit-label>
{{ "passportNumber" | i18n }} {{ "passportNumber" | i18n }}
</bit-label> </bit-label>
<input formControlName="passportNumber" bitInput type="password" /> <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-form-field> <bit-form-field>
<bit-label> <bit-label>

View File

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