From 96f9df7e5053e05ee10942fab894e95746780785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 25 Dec 2019 19:18:18 +0000 Subject: [PATCH] fix(ui): tweak dark theme css --- .../__snapshots__/index.test.js.snap | 2 +- .../ManagedSilence/SilenceComment.js | 6 ++++-- .../__snapshots__/SilenceComment.test.js.snap | 8 ++++---- .../__snapshots__/index.test.js.snap | 4 ++-- .../Components/NavBar/FilterInput/History.js | 2 +- .../OverviewModal/OverviewModalContent.js | 2 +- .../OverviewModalContent.test.js.snap | 6 +++--- .../Components/SilenceModal/Browser/index.js | 2 +- .../SilenceModal/Browser/index.test.js | 2 +- .../__snapshots__/index.test.js.snap | 18 ++++++++--------- .../SilenceModal/DateTimeSelect/index.js | 2 +- ui/src/Components/SilenceModal/SilenceForm.js | 2 +- ui/src/Components/Theme/ReactSelect.js | 2 +- ui/src/Styles/Components/BaseLabel.scss | 2 +- ui/src/Styles/Components/InputRange.scss | 4 +--- ui/src/Styles/Components/ManagedSilence.scss | 1 + ui/src/Styles/DarkTheme.scss | 20 +++++++++++++------ ui/src/Styles/LightTheme.scss | 4 ++++ 18 files changed, 51 insertions(+), 38 deletions(-) diff --git a/ui/src/Components/Grid/AlertGrid/AlertGroup/GroupFooter/__snapshots__/index.test.js.snap b/ui/src/Components/Grid/AlertGrid/AlertGroup/GroupFooter/__snapshots__/index.test.js.snap index 57d660381..634dafe9b 100644 --- a/ui/src/Components/Grid/AlertGrid/AlertGroup/GroupFooter/__snapshots__/index.test.js.snap +++ b/ui/src/Components/Grid/AlertGrid/AlertGroup/GroupFooter/__snapshots__/index.test.js.snap @@ -307,7 +307,7 @@ exports[` mathes snapshot when silence is rendered 1`] = `
-
+
Mocked Silence
diff --git a/ui/src/Components/ManagedSilence/SilenceComment.js b/ui/src/Components/ManagedSilence/SilenceComment.js index 1c09b57e9..78f8202f6 100644 --- a/ui/src/Components/ManagedSilence/SilenceComment.js +++ b/ui/src/Components/ManagedSilence/SilenceComment.js @@ -28,7 +28,9 @@ const SilenceComment = ({ target="_blank" rel="noopener noreferrer" className={ - collapsed ? "text-dark mw-100 text-truncate d-block" : "text-dark" + collapsed + ? "components-managed-silence-comment mw-100 text-truncate d-block" + : "components-managed-silence-comment" } > @@ -53,7 +55,7 @@ const SilenceComment = ({
diff --git a/ui/src/Components/ManagedSilence/__snapshots__/SilenceComment.test.js.snap b/ui/src/Components/ManagedSilence/__snapshots__/SilenceComment.test.js.snap index c311ce334..e6ad918af 100644 --- a/ui/src/Components/ManagedSilence/__snapshots__/SilenceComment.test.js.snap +++ b/ui/src/Components/ManagedSilence/__snapshots__/SilenceComment.test.js.snap @@ -20,7 +20,7 @@ exports[` Matches snapshot when collapsed 1`] = `
-
+
Mocked Silence
@@ -89,7 +89,7 @@ exports[` Matches snapshot when collapsed and multiple cluster
-
+
Mocked Silence
@@ -164,7 +164,7 @@ exports[` Matches snapshot when collapsed and multiple cluster
-
+
Mocked Silence
@@ -227,7 +227,7 @@ exports[` Matches snapshot when expanded 1`] = `
-
+
Mocked Silence
diff --git a/ui/src/Components/ManagedSilence/__snapshots__/index.test.js.snap b/ui/src/Components/ManagedSilence/__snapshots__/index.test.js.snap index 6b0ae6795..9aadcda12 100644 --- a/ui/src/Components/ManagedSilence/__snapshots__/index.test.js.snap +++ b/ui/src/Components/ManagedSilence/__snapshots__/index.test.js.snap @@ -22,7 +22,7 @@ exports[` matches snapshot when collapsed 1`] = `
-
+
Mocked Silence
@@ -105,7 +105,7 @@ exports[` matches snapshot with expaned details 1`] = `
-
+
Mocked Silence
diff --git a/ui/src/Components/NavBar/FilterInput/History.js b/ui/src/Components/NavBar/FilterInput/History.js index daceee0c6..4c91d5151 100644 --- a/ui/src/Components/NavBar/FilterInput/History.js +++ b/ui/src/Components/NavBar/FilterInput/History.js @@ -125,7 +125,7 @@ const HistoryMenuContent = ({ afterClick={afterClick} /> nameStats.map(nameStats => ( - + {nameStats.hits} diff --git a/ui/src/Components/OverviewModal/__snapshots__/OverviewModalContent.test.js.snap b/ui/src/Components/OverviewModal/__snapshots__/OverviewModalContent.test.js.snap index 246a31b2f..842cf92bb 100644 --- a/ui/src/Components/OverviewModal/__snapshots__/OverviewModalContent.test.js.snap +++ b/ui/src/Components/OverviewModal/__snapshots__/OverviewModalContent.test.js.snap @@ -24,7 +24,7 @@ exports[` matches snapshot with labels to show 1`] = ` - + 16 @@ -131,7 +131,7 @@ exports[` matches snapshot with labels to show 1`] = ` - + 20 @@ -439,7 +439,7 @@ exports[` matches snapshot with labels to show 1`] = ` - + 5 diff --git a/ui/src/Components/SilenceModal/Browser/index.js b/ui/src/Components/SilenceModal/Browser/index.js index 2a379f70c..eb0e1f333 100644 --- a/ui/src/Components/SilenceModal/Browser/index.js +++ b/ui/src/Components/SilenceModal/Browser/index.js @@ -208,7 +208,7 @@ const Browser = observer( />