mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
21 lines
536 B
TypeScript
21 lines
536 B
TypeScript
import { Directive, HostBinding, Input, OnInit, Optional } from "@angular/core";
|
|
|
|
import { BitIconButtonComponent } from "../icon-button/icon-button.component";
|
|
|
|
@Directive({
|
|
selector: "[bitSuffix]",
|
|
})
|
|
export class BitSuffixDirective implements OnInit {
|
|
@HostBinding("class") @Input() get classList() {
|
|
return ["tw-text-muted"];
|
|
}
|
|
|
|
constructor(@Optional() private iconButtonComponent: BitIconButtonComponent) {}
|
|
|
|
ngOnInit() {
|
|
if (this.iconButtonComponent) {
|
|
this.iconButtonComponent.size = "small";
|
|
}
|
|
}
|
|
}
|