mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
[CL-135] Migrate component library to standalone components (#12389)
* Migrate component library to standalone components * Fix tests
This commit is contained in:
@@ -31,6 +31,7 @@ const hoverStyles: Record<BadgeVariant, string[]> = {
|
||||
@Directive({
|
||||
selector: "span[bitBadge], a[bitBadge], button[bitBadge]",
|
||||
providers: [{ provide: FocusableElement, useExisting: BadgeDirective }],
|
||||
standalone: true,
|
||||
})
|
||||
export class BadgeDirective implements FocusableElement {
|
||||
@HostBinding("class") get classList() {
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { NgModule } from "@angular/core";
|
||||
|
||||
import { BadgeDirective } from "./badge.directive";
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule],
|
||||
imports: [BadgeDirective],
|
||||
exports: [BadgeDirective],
|
||||
declarations: [BadgeDirective],
|
||||
})
|
||||
export class BadgeModule {}
|
||||
|
||||
Reference in New Issue
Block a user