From ed21210a07b7a9cf99732db04238bd757485a126 Mon Sep 17 00:00:00 2001 From: Flo Date: Sun, 1 Nov 2026 12:00:46 +0100 Subject: [PATCH] feat: add highlight directive --- src/app/app.component.css | 5 ++ src/app/app.component.html | 6 +- src/app/app.component.ts | 3 +- .../shared/highlight/highlight.directive.ts | 68 +++++++++++++++++++ 4 files changed, 78 insertions(+), 4 deletions(-) create mode 100644 src/app/shared/highlight/highlight.directive.ts diff --git a/src/app/app.component.css b/src/app/app.component.css index 6fc5dac..ff63d4d 100644 --- a/src/app/app.component.css +++ b/src/app/app.component.css @@ -27,6 +27,11 @@ input.search { inset 0 0 2px rgba(0, 0, 0, 0.19); } +input.search:disabled { + background: white; + cursor: not-allowed; +} + .suggestions { margin: 0; padding: 0; diff --git a/src/app/app.component.html b/src/app/app.component.html index c5fbf03..9a0e114 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -11,12 +11,12 @@ @if (error) {

{{`HTTP error ${error.message}`}}

} @else { -