mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 17:53:39 +00:00
blue click and focus styling
This commit is contained in:
17
src/app/directives/blur-click.directive.ts
Normal file
17
src/app/directives/blur-click.directive.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import {
|
||||
Directive,
|
||||
ElementRef,
|
||||
HostListener,
|
||||
} from '@angular/core';
|
||||
|
||||
@Directive({
|
||||
selector: '[appBlurClick]',
|
||||
})
|
||||
export class BlurClickDirective {
|
||||
constructor(private el: ElementRef) {
|
||||
}
|
||||
|
||||
@HostListener('click') onClick() {
|
||||
this.el.nativeElement.blur();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user