[PM-13145] Hidden fields font (#11764)
* display card number and security code with mono font * display hidden custom fields with mono font * display passwords with mono font
This commit is contained in:
parent
5e157c5bca
commit
bb296c7f8d
|
@ -12,7 +12,13 @@
|
||||||
|
|
||||||
<bit-form-field>
|
<bit-form-field>
|
||||||
<bit-label>{{ "number" | i18n }}</bit-label>
|
<bit-label>{{ "number" | i18n }}</bit-label>
|
||||||
<input id="cardNumber" bitInput formControlName="number" type="password" />
|
<input
|
||||||
|
id="cardNumber"
|
||||||
|
bitInput
|
||||||
|
formControlName="number"
|
||||||
|
type="password"
|
||||||
|
class="tw-font-mono"
|
||||||
|
/>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
bitIconButton
|
bitIconButton
|
||||||
|
@ -54,7 +60,7 @@
|
||||||
|
|
||||||
<bit-form-field disableMargin>
|
<bit-form-field disableMargin>
|
||||||
<bit-label>{{ "securityCode" | i18n }}</bit-label>
|
<bit-label>{{ "securityCode" | i18n }}</bit-label>
|
||||||
<input id="cardCode" bitInput formControlName="code" type="password" />
|
<input id="cardCode" bitInput formControlName="code" type="password" class="tw-font-mono" />
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
bitIconButton
|
bitIconButton
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
formControlName="value"
|
formControlName="value"
|
||||||
type="password"
|
type="password"
|
||||||
data-testid="custom-hidden-field"
|
data-testid="custom-hidden-field"
|
||||||
|
class="tw-font-mono"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
<bit-form-field>
|
<bit-form-field>
|
||||||
<bit-label>{{ "password" | i18n }}</bit-label>
|
<bit-label>{{ "password" | i18n }}</bit-label>
|
||||||
<input bitInput formControlName="password" type="password" />
|
<input bitInput formControlName="password" type="password" class="tw-font-mono" />
|
||||||
<bit-hint *ngIf="loginDetailsForm.controls.password.enabled">
|
<bit-hint *ngIf="loginDetailsForm.controls.password.enabled">
|
||||||
<ng-container *ngIf="newPasswordGenerated">
|
<ng-container *ngIf="newPasswordGenerated">
|
||||||
{{ "securePasswordGenerated" | i18n }}
|
{{ "securePasswordGenerated" | i18n }}
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
<p>{{ (canCaptureTotp ? "totpHelperWithCapture" : "totpHelper") | i18n }}</p>
|
<p>{{ (canCaptureTotp ? "totpHelperWithCapture" : "totpHelper") | i18n }}</p>
|
||||||
</bit-popover>
|
</bit-popover>
|
||||||
</bit-label>
|
</bit-label>
|
||||||
<input bitInput formControlName="totp" type="password" />
|
<input bitInput formControlName="totp" type="password" class="tw-font-mono" />
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
bitIconButton
|
bitIconButton
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
[value]="card.number"
|
[value]="card.number"
|
||||||
aria-readonly="true"
|
aria-readonly="true"
|
||||||
data-testid="cardholder-number"
|
data-testid="cardholder-number"
|
||||||
|
class="tw-font-mono"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
bitSuffix
|
bitSuffix
|
||||||
|
@ -63,6 +64,7 @@
|
||||||
[value]="card.code"
|
[value]="card.code"
|
||||||
aria-readonly="true"
|
aria-readonly="true"
|
||||||
data-testid="cardholder-code"
|
data-testid="cardholder-code"
|
||||||
|
class="tw-font-mono"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
bitSuffix
|
bitSuffix
|
||||||
|
|
|
@ -25,7 +25,14 @@
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
<bit-form-field *ngIf="field.type === fieldType.Hidden" [disableReadOnlyBorder]="last">
|
<bit-form-field *ngIf="field.type === fieldType.Hidden" [disableReadOnlyBorder]="last">
|
||||||
<bit-label>{{ field.name }}</bit-label>
|
<bit-label>{{ field.name }}</bit-label>
|
||||||
<input readonly bitInput type="password" [value]="field.value" aria-readonly="true" />
|
<input
|
||||||
|
readonly
|
||||||
|
bitInput
|
||||||
|
type="password"
|
||||||
|
[value]="field.value"
|
||||||
|
aria-readonly="true"
|
||||||
|
class="tw-font-mono"
|
||||||
|
/>
|
||||||
<button
|
<button
|
||||||
bitSuffix
|
bitSuffix
|
||||||
type="button"
|
type="button"
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
[value]="cipher.login.password"
|
[value]="cipher.login.password"
|
||||||
aria-readonly="true"
|
aria-readonly="true"
|
||||||
data-testid="login-password"
|
data-testid="login-password"
|
||||||
|
class="tw-font-mono"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
*ngIf="cipher.viewPassword && passwordRevealed"
|
*ngIf="cipher.viewPassword && passwordRevealed"
|
||||||
|
|
Loading…
Reference in New Issue