1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-28 03:21:40 +01:00

feat(2FA-Setup/Recovery-Dialogs): [Auth/PM-11701] Refactor dialogs to properly use title & subtitle inputs for consistent styling (#13493)

This commit is contained in:
Jared Snider 2025-02-24 15:48:09 -05:00 committed by GitHub
parent a5ea8066a3
commit 62d3fe21a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 19 additions and 35 deletions

View File

@ -1,8 +1,8 @@
<bit-dialog dialogSize="default">
<span bitDialogTitle>
{{ "twoStepLogin" | i18n }}
<span bitTypography="body1">{{ "recoveryCodeTitle" | i18n }}</span>
</span>
<bit-dialog
dialogSize="default"
[title]="'twoStepLogin' | i18n"
[subtitle]="'recoveryCodeTitle' | i18n"
>
<ng-container *ngIf="authed" bitDialogContent>
<ng-container *ngIf="code">
<p bitTypography="body1" class="tw-text-center">{{ "twoFactorRecoveryYourCode" | i18n }}:</p>

View File

@ -1,9 +1,9 @@
<form *ngIf="authed" [formGroup]="formGroup" [bitSubmit]="submit">
<bit-dialog dialogSize="default">
<span bitDialogTitle>
{{ "twoStepLogin" | i18n }}
<span bitTypography="body1">{{ "authenticatorAppTitle" | i18n }}</span>
</span>
<bit-dialog
dialogSize="default"
[title]="'twoStepLogin' | i18n"
[subtitle]="'authenticatorAppTitle' | i18n"
>
<ng-container bitDialogContent>
<ng-container *ngIf="enabled">
<bit-callout type="success" title="{{ 'enabled' | i18n }}" icon="bwi-check-circle">

View File

@ -1,9 +1,5 @@
<form [formGroup]="formGroup" [bitSubmit]="submit" *ngIf="authed" autocomplete="off">
<bit-dialog>
<span bitDialogTitle>
{{ "twoStepLogin" | i18n }}
<span bitTypography="body1">Duo</span>
</span>
<bit-dialog [title]="'twoStepLogin' | i18n" [subtitle]="'Duo'">
<ng-container bitDialogContent>
<ng-container *ngIf="enabled">
<app-callout type="success" title="{{ 'enabled' | i18n }}" icon="bwi bwi-check-circle">

View File

@ -1,9 +1,5 @@
<form [formGroup]="formGroup" [bitSubmit]="submit" *ngIf="authed">
<bit-dialog>
<span bitDialogTitle>
{{ "twoStepLogin" | i18n }}
<span bitTypography="body1">{{ "emailTitle" | i18n }}</span>
</span>
<bit-dialog [title]="'twoStepLogin' | i18n" [subtitle]="'emailTitle' | i18n">
<ng-container bitDialogContent>
<ng-container *ngIf="enabled">
<bit-callout type="success" title="{{ 'enabled' | i18n }}" icon="bwi-check-circle">

View File

@ -1,9 +1,9 @@
<form *ngIf="authed" [formGroup]="formGroup" [bitSubmit]="submit">
<bit-dialog dialogSize="large">
<span bitDialogTitle>
{{ "twoStepLogin" | i18n }}
<span bitTypography="body1">{{ "webAuthnTitle" | i18n }}</span>
</span>
<bit-dialog
dialogSize="large"
[title]="'twoStepLogin' | i18n"
[subtitle]="'webAuthnTitle' | i18n"
>
<ng-container bitDialogContent>
<app-callout
type="success"

View File

@ -1,9 +1,5 @@
<form *ngIf="authed" [formGroup]="formGroup" [bitSubmit]="submit">
<bit-dialog dialogSize="large">
<span bitDialogTitle>
{{ "twoStepLogin" | i18n }}
<span bitTypography="body1">YubiKey</span>
</span>
<bit-dialog dialogSize="large" [title]="'twoStepLogin' | i18n" [subtitle]="'YubiKey'">
<ng-container bitDialogContent>
<app-callout
*ngIf="enabled"

View File

@ -1,9 +1,5 @@
<form [formGroup]="formGroup" [bitSubmit]="submit">
<bit-dialog dialogSize="default">
<span bitDialogTitle>
{{ "twoStepLogin" | i18n }}
<small class="tw-text-muted">{{ dialogTitle }}</small>
</span>
<bit-dialog dialogSize="default" [title]="'twoStepLogin' | i18n" [subtitle]="dialogTitle">
<ng-container bitDialogContent>
<app-user-verification-form-input
formControlName="secret"