mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +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 margins: Record<TypographyType, string[]> = {
|
||||
|
||||
@Directive({
|
||||
selector: "[bitTypography]",
|
||||
standalone: true,
|
||||
})
|
||||
export class TypographyDirective {
|
||||
@Input("bitTypography") bitTypography: TypographyType;
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { NgModule } from "@angular/core";
|
||||
|
||||
import { TypographyDirective } from "./typography.directive";
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule],
|
||||
imports: [TypographyDirective],
|
||||
exports: [TypographyDirective],
|
||||
declarations: [TypographyDirective],
|
||||
})
|
||||
export class TypographyModule {}
|
||||
|
||||
Reference in New Issue
Block a user