1
0
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:
Kyle Spearrin
2018-01-27 13:47:48 -05:00
parent 84d1591fce
commit 3c76c88d4d
7 changed files with 37 additions and 11 deletions

View 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();
}
}