1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-12 06:23:38 +00:00

fix label

This commit is contained in:
Vicki League
2025-06-25 15:42:38 -04:00
parent 45e2bdc85c
commit 40eb0195e9

View File

@@ -13,8 +13,8 @@ let nextId = 0;
templateUrl: "label.component.html",
imports: [CommonModule],
host: {
"[attr.class]": "classList()",
"[attr.id]": "id()",
"[class]": "classList",
"[id]": "id()",
},
})
export class BitLabel {
@@ -23,14 +23,13 @@ export class BitLabel {
@Optional() private parentFormControl: FormControlComponent,
) {}
// TODO signal migration -- does this work with the host binding?
readonly classList = input([
readonly classList = [
"tw-inline-flex",
"tw-gap-1",
"tw-items-baseline",
"tw-flex-row",
"tw-min-w-0",
]);
];
@HostBinding("title") get title() {
return this.elementRef.nativeElement.textContent.trim();