From c374d627e639df83c3b4978d0eb9f04e30ccaa76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 11 May 2019 22:51:13 +0100 Subject: [PATCH] fix(ui): matcher badge and close icon css fixes Counter badge is misaligned, fix it by setting line-height. Close icon border padding is different than parent, ensure it's inherited to avoid mismatch --- .../Components/MultiSelect/__snapshots__/index.test.js.snap | 2 +- ui/src/Components/MultiSelect/index.js | 1 + .../AlertManagerInput/__snapshots__/index.test.js.snap | 4 ++-- ui/src/Components/SilenceModal/SilenceMatch/MatchCounter.js | 4 ++-- .../SilenceMatch/__snapshots__/LabelValueInput.test.js.snap | 4 ++-- .../SilenceMatch/__snapshots__/MatchCounter.test.js.snap | 4 ++-- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ui/src/Components/MultiSelect/__snapshots__/index.test.js.snap b/ui/src/Components/MultiSelect/__snapshots__/index.test.js.snap index 8d3f08cbc..19256c093 100644 --- a/ui/src/Components/MultiSelect/__snapshots__/index.test.js.snap +++ b/ui/src/Components/MultiSelect/__snapshots__/index.test.js.snap @@ -275,7 +275,7 @@ exports[` matches snapshot with isMulti=true and a value 1`
foo
-
+
matches snapshot 1`] = `
am1 | am2
-
+
matches snapshot 1`] = `
am3
-
+
{this.matchedAlerts.total === null ? ( diff --git a/ui/src/Components/SilenceModal/SilenceMatch/__snapshots__/LabelValueInput.test.js.snap b/ui/src/Components/SilenceModal/SilenceMatch/__snapshots__/LabelValueInput.test.js.snap index 73d0f4bb0..f6b8cffe2 100644 --- a/ui/src/Components/SilenceModal/SilenceMatch/__snapshots__/LabelValueInput.test.js.snap +++ b/ui/src/Components/SilenceModal/SilenceMatch/__snapshots__/LabelValueInput.test.js.snap @@ -9,8 +9,8 @@ exports[` matches snapshot 1`] = ` class style=\\"display:inline-block;max-width:100%\\" > - matches snapshot with empty matcher 1`] = ` aria-describedby=\\"tippy-tooltip-1\\" data-original-title=\\"Number of alerts matching this label\\" > - 0