From c81d57f02d10e1222ede1adadc9ff76d409c7a89 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 19 Jun 2021 14:10:55 +0100 Subject: [PATCH 1/2] Adds new color variable for styling status check tooltips --- docs/theming.md | 2 ++ src/styles/color-palette.scss | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/theming.md b/docs/theming.md index 5a90180a49..7b6966fb2f 100644 --- a/docs/theming.md +++ b/docs/theming.md @@ -116,6 +116,8 @@ You can target specific elements on the UI with these variables. All are optiona - `--welcome-popup-text-color` - Text color for the welcome pop-up. Defaults to `--primary` - `--side-bar-background` - Background color of the sidebar used in the workspace view. Defaults to `--background-darker` - `--side-bar-color` - Color of icons and text within the sidebar. Defaults to `--primary` +- `--status-check-tooltip-background` - Background color for status check tooltips. Defaults to `--background-darker` +- `--status-check-tooltip-color` - Text color for the status check tooltips. Defaults to `--primary` #### Non-Color Variables - `--outline-color` - Used to outline focused or selected elements diff --git a/src/styles/color-palette.scss b/src/styles/color-palette.scss index ebc431ea10..24c734d746 100644 --- a/src/styles/color-palette.scss +++ b/src/styles/color-palette.scss @@ -74,4 +74,6 @@ --side-bar-background: var(--background-darker); --side-bar-background-lighter: var(--background); --side-bar-color: var(--primary); + --status-check-tooltip-background: var(--background-darker); + --status-check-tooltip-color: var(--primary); } From a3a84e5b493aa871e5f2391b96c02adb0dedfc08 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 19 Jun 2021 14:12:50 +0100 Subject: [PATCH 2/2] Re: #39 - Adds specifc styles to fix status indicator tooltip Fixes styling issue causing status check tooltip to not be visible in certain themes --- src/components/LinkItems/Item.vue | 1 + src/components/LinkItems/StatusIndicator.vue | 3 ++- src/styles/color-themes.scss | 10 +++++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/LinkItems/Item.vue b/src/components/LinkItems/Item.vue index 53cb47fc1b..37c0733a3f 100644 --- a/src/components/LinkItems/Item.vue +++ b/src/components/LinkItems/Item.vue @@ -101,6 +101,7 @@ export default { html: false, placement: this.statusResponse ? 'left' : 'auto', delay: { show: 600, hide: 200 }, + classes: 'item-description-tooltip', }; }, /* Used by certain themes, which display an icon with animated CSS */ diff --git a/src/components/LinkItems/StatusIndicator.vue b/src/components/LinkItems/StatusIndicator.vue index 6b1864dd5c..7775fa6295 100644 --- a/src/components/LinkItems/StatusIndicator.vue +++ b/src/components/LinkItems/StatusIndicator.vue @@ -112,7 +112,8 @@ export default {