mirror of
https://github.com/bitwarden/browser
synced 2026-02-19 19:04:01 +00:00
22 lines
519 B
TypeScript
22 lines
519 B
TypeScript
import { Directive, OnInit, Optional } from "@angular/core";
|
|
|
|
import { BitIconButtonComponent } from "../icon-button/icon-button.component";
|
|
|
|
@Directive({
|
|
selector: "[bitPrefix]",
|
|
host: {
|
|
"[class]": "classList",
|
|
},
|
|
})
|
|
export class BitPrefixDirective implements OnInit {
|
|
readonly classList = ["tw-text-muted"];
|
|
|
|
constructor(@Optional() private iconButtonComponent: BitIconButtonComponent) {}
|
|
|
|
ngOnInit() {
|
|
if (this.iconButtonComponent) {
|
|
this.iconButtonComponent.size.set("small");
|
|
}
|
|
}
|
|
}
|