1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

[PM-10934] Remove last form-field bottom border (#10751)

* match API of new CL FormField component

* remove readonly border for additional options component

* remove readonly border for last autofill option

* remove readonly border for last custom-field form field

* remove readonly border for when collection,org or folder is available

* add `ReadOnlyCipherCardComponent` to handle readonly border

* remove readonly border for the last identity form field

* remove readonly border for the last card form field

* remove readonly border for the last login form field

* remove unneeded true value
This commit is contained in:
Nick Krantz
2024-09-04 10:50:34 -05:00
committed by GitHub
parent 192fd885d5
commit 3e9fb2009e
13 changed files with 67 additions and 15 deletions

View File

@@ -3,7 +3,7 @@
<h2 bitTypography="h6">{{ "personalDetails" | i18n }}</h2>
</bit-section-header>
<bit-card class="[&_bit-form-field:last-of-type]:tw-mb-0">
<read-only-cipher-card>
<bit-form-field *ngIf="cipher.identity.fullName">
<bit-label>{{ "name" | i18n }}</bit-label>
<input bitInput [value]="cipher.identity.fullName" readonly data-testid="name" />
@@ -43,7 +43,7 @@
[valueLabel]="'company' | i18n"
></button>
</bit-form-field>
</bit-card>
</read-only-cipher-card>
</bit-section>
<bit-section *ngIf="showIdentificationDetails">
@@ -51,7 +51,7 @@
<h2 bitTypography="h6">{{ "identification" | i18n }}</h2>
</bit-section-header>
<bit-card class="[&_bit-form-field:last-of-type]:tw-mb-0">
<read-only-cipher-card>
<bit-form-field *ngIf="cipher.identity.ssn">
<bit-label>{{ "ssn" | i18n }}</bit-label>
<input bitInput type="password" [value]="cipher.identity.ssn" readonly data-testid="ssn" />
@@ -111,7 +111,7 @@
[valueLabel]="'licenseNumber' | i18n"
></button>
</bit-form-field>
</bit-card>
</read-only-cipher-card>
</bit-section>
<bit-section *ngIf="showContactDetails">
@@ -119,7 +119,7 @@
<h2 bitTypography="h6">{{ "contactInfo" | i18n }}</h2>
</bit-section-header>
<bit-card class="[&_bit-form-field:last-of-type]:tw-mb-0">
<read-only-cipher-card>
<bit-form-field *ngIf="cipher.identity.email">
<bit-label>{{ "email" | i18n }}</bit-label>
<input bitInput [value]="cipher.identity.email" readonly data-testid="email" />
@@ -166,5 +166,5 @@
[valueLabel]="'address' | i18n"
></button>
</bit-form-field>
</bit-card>
</read-only-cipher-card>
</bit-section>

View File

@@ -12,6 +12,8 @@ import {
TypographyModule,
} from "@bitwarden/components";
import { ReadOnlyCipherCardComponent } from "../read-only-cipher-card/read-only-cipher-card.component";
@Component({
standalone: true,
selector: "app-view-identity-sections",
@@ -25,6 +27,7 @@ import {
TypographyModule,
FormFieldModule,
IconButtonModule,
ReadOnlyCipherCardComponent,
],
})
export class ViewIdentitySectionsComponent implements OnInit {