From e7a9113d0bcefcf62b2e629086985f0cdd5b06a8 Mon Sep 17 00:00:00 2001 From: Florent Gravin Date: Mon, 18 Dec 2023 21:14:11 +0100 Subject: [PATCH] style(api-form): rework the card hover/selection rendering --- .../record/record-apis/record-apis.component.html | 4 ++-- .../src/lib/api-card/api-card.component.html | 15 ++++++++++----- .../record-api-form.component.html | 4 ++-- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/apps/datahub/src/app/record/record-apis/record-apis.component.html b/apps/datahub/src/app/record/record-apis/record-apis.component.html index ec0cee466b..abfb3ee484 100644 --- a/apps/datahub/src/app/record/record-apis/record-apis.component.html +++ b/apps/datahub/src/app/record/record-apis/record-apis.component.html @@ -21,8 +21,8 @@ [ngClass]="{ 'mr-[var(--container-outside-width)]': last, 'ml-[var(--container-outside-width)]': first, - 'shadow-xl bg-white': link === (facade.selectedApiLink$ | async), - 'bg-neutral-100': link !== (facade.selectedApiLink$ | async) + 'card-shadow': link !== (facade.selectedApiLink$ | async), + 'bg-neutral-100': link === (facade.selectedApiLink$ | async) }" (openRecordApiForm)="openRecordApiForm($event)" > diff --git a/libs/ui/elements/src/lib/api-card/api-card.component.html b/libs/ui/elements/src/lib/api-card/api-card.component.html index 520576df97..341638b261 100644 --- a/libs/ui/elements/src/lib/api-card/api-card.component.html +++ b/libs/ui/elements/src/lib/api-card/api-card.component.html @@ -1,17 +1,19 @@
{{ link.name || link.description }}
{{ link.accessServiceProtocol.toUpperCase() }}{{ link.accessServiceProtocol }} more_horiz diff --git a/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html b/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html index c69020d132..6e0925db25 100644 --- a/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +++ b/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html @@ -1,5 +1,5 @@
-
+
record.metadata.api.form.create @@ -64,7 +64,7 @@
record.metadata.api.form.customUrl
-
+