From 4f8122db831b256e9ba6a366ee201246830d25cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Tue, 25 Aug 2020 11:08:03 +0100 Subject: [PATCH] chore(ui): only render filter search icon when empty Turn the search icon into a placeholder - only render it if there are no active filters. --- .../__snapshots__/index.test.tsx.snap | 171 ++++++++++++++++-- .../NavBar/FilterInput/index.test.tsx | 15 +- .../Components/NavBar/FilterInput/index.tsx | 28 +-- 3 files changed, 180 insertions(+), 34 deletions(-) diff --git a/ui/src/Components/NavBar/FilterInput/__snapshots__/index.test.tsx.snap b/ui/src/Components/NavBar/FilterInput/__snapshots__/index.test.tsx.snap index 8deb7ddca..206609862 100644 --- a/ui/src/Components/NavBar/FilterInput/__snapshots__/index.test.tsx.snap +++ b/ui/src/Components/NavBar/FilterInput/__snapshots__/index.test.tsx.snap @@ -1,26 +1,8 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[` matches snapshot on default render 1`] = ` +exports[` matches snapshot with no filters 1`] = ` "
-
- - - - - - -
matches snapshot on default render 1`] = ` aria-expanded=\\"false\\" class=\\"autosuggest d-inline-block mw-100\\" > + + + + + + matches snapshot on default render 1`] = `
-
+
+ + + +
+
+" +`; + +exports[` matches snapshot with some filters 1`] = ` +" +
+
+ + +
+ +
+
+
+
+