From 9eeadd5882995bb1347b20465a5647d985af18d7 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 10 Aug 2022 12:02:47 +0000 Subject: [PATCH] fix: tooltip colors --- apps/ui/src/lib/components/Setting.svelte | 1 + .../src/lib/components/UpdateAvailable.svelte | 3 ++- apps/ui/src/routes/__layout.svelte | 18 +++++++++--------- .../routes/applications/[id]/__layout.svelte | 18 +++++++++--------- .../applications/[id]/logs/_BuildLog.svelte | 4 ++-- .../routes/applications/[id]/logs/build.svelte | 2 +- .../routes/applications/[id]/logs/index.svelte | 2 +- .../src/routes/databases/[id]/__layout.svelte | 8 ++++---- .../routes/databases/[id]/logs/index.svelte | 2 +- .../routes/destinations/[id]/__layout.svelte | 2 +- .../src/routes/iam/team/[id]/__layout.svelte | 2 +- .../src/routes/services/[id]/__layout.svelte | 16 ++++++++-------- .../src/routes/services/[id]/logs/index.svelte | 2 +- .../ui/src/routes/sources/[id]/__layout.svelte | 2 +- 14 files changed, 42 insertions(+), 40 deletions(-) diff --git a/apps/ui/src/lib/components/Setting.svelte b/apps/ui/src/lib/components/Setting.svelte index c64759c86..30f45755b 100644 --- a/apps/ui/src/lib/components/Setting.svelte +++ b/apps/ui/src/lib/components/Setting.svelte @@ -18,6 +18,7 @@
{#if updateStatus.loading}
diff --git a/apps/ui/src/routes/applications/[id]/__layout.svelte b/apps/ui/src/routes/applications/[id]/__layout.svelte index c91fe6307..9a165b635 100644 --- a/apps/ui/src/routes/applications/[id]/__layout.svelte +++ b/apps/ui/src/routes/applications/[id]/__layout.svelte @@ -179,7 +179,7 @@ {#if $status.application.isExited} @@ -230,7 +230,7 @@ on:click={stopApplication} type="submit" disabled={$disabledButton} - class="icons bg-transparent tooltip tooltip-bottom text-sm flex items-center space-x-2 text-error" + class="icons bg-transparent tooltip tooltip-primary tooltip-bottom text-sm flex items-center space-x-2 text-error" data-tip={$appSession.isAdmin ? $t('application.stop_application') : $t('application.permission_denied_stop_application')} @@ -255,7 +255,7 @@ type="submit" disabled={$disabledButton || !isQueueActive} class:hover:text-green-500={isQueueActive} - class="icons bg-transparent tooltip tooltip-bottom text-sm flex items-center space-x-2" + class="icons bg-transparent tooltip tooltip-primary tooltip-bottom text-sm flex items-center space-x-2" data-tip={$appSession.isAdmin ? isQueueActive ? 'Rebuild application' @@ -285,7 +285,7 @@ diff --git a/apps/ui/src/routes/iam/team/[id]/__layout.svelte b/apps/ui/src/routes/iam/team/[id]/__layout.svelte index 32f8d9cbd..ff308d5db 100644 --- a/apps/ui/src/routes/iam/team/[id]/__layout.svelte +++ b/apps/ui/src/routes/iam/team/[id]/__layout.svelte @@ -52,7 +52,7 @@ type="submit" disabled={!$appSession.isAdmin} class:hover:text-red-500={$appSession.isAdmin} - class="icons tooltip tooltip-left bg-transparent text-sm" + class="icons tooltip tooltip-primary tooltip-left bg-transparent text-sm" data-tip={$appSession.isAdmin ? 'Delete' : $t('destination.permission_denied_delete_destination')}> @@ -228,7 +228,7 @@ on:click={stopService} type="submit" disabled={$disabledButton} - class="icons bg-transparent tooltip tooltip-bottom text-sm flex items-center space-x-2 text-red-500" + class="icons bg-transparent tooltip tooltip-primary tooltip-bottom text-sm flex items-center space-x-2 text-red-500" data-tip={$appSession.isAdmin ? $t('service.stop_service') : $t('service.permission_denied_stop_service')} @@ -253,7 +253,7 @@ on:click={startService} type="submit" disabled={$disabledButton} - class="icons bg-transparent tooltip tooltip-bottom text-sm flex items-center space-x-2 text-green-500" + class="icons bg-transparent tooltip tooltip-primary tooltip-bottom text-sm flex items-center space-x-2 text-green-500" data-tip={$appSession.isAdmin ? $t('service.start_service') : $t('service.permission_denied_start_service')} @@ -283,7 +283,7 @@ class:bg-coolgray-500={$page.url.pathname === `/services/${id}`} >