Skip to content

Commit

Permalink
Add blur effect to highlight directive for improved user experience
Browse files Browse the repository at this point in the history
  • Loading branch information
robsonalvesdev committed Nov 28, 2024
1 parent 8a46ad3 commit dcdf1d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/directives/highlight.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export class HighlightDirective {
private highlight(color: string, visibility: boolean = true) {
if (visibility) {
this.el.nativeElement.classList.add(color);
this.el.nativeElement.blur();
} else {
this.el.nativeElement.classList.remove(color);
this.el.nativeElement.blur();
Expand Down

0 comments on commit dcdf1d6

Please sign in to comment.