diff --git a/ui/src/Components/Labels/FilterInputLabel/index.css b/ui/src/Components/Labels/FilterInputLabel/index.css
index 3de3f2cad..eb22f0467 100644
--- a/ui/src/Components/Labels/FilterInputLabel/index.css
+++ b/ui/src/Components/Labels/FilterInputLabel/index.css
@@ -11,9 +11,12 @@
margin-bottom: 1px;
}
-.badge.components-filteredinputlabel > .badge {
+.badge.components-filteredinputlabel > .badge,
+.badge.components-filteredinputlabel > svg {
/* match outer badge font size */
font-size: 90%;
+ line-height: 100%;
+ padding-bottom: 0.1em;
/* we have badge inside a badge, make the inner one a little brighter
in case both use same color classes */
@@ -22,5 +25,5 @@
.badge.components-filteredinputlabel > .close {
/* make close button bigger, to match font size of the badge */
- font-size: 1rem;
+ font-size: 100%;
}
diff --git a/ui/src/Components/Labels/FilterInputLabel/index.js b/ui/src/Components/Labels/FilterInputLabel/index.js
index 9f225b40d..9256a066f 100644
--- a/ui/src/Components/Labels/FilterInputLabel/index.js
+++ b/ui/src/Components/Labels/FilterInputLabel/index.js
@@ -56,32 +56,18 @@ const FilterInputLabel = observer(
f => f.hits !== alertStore.info.totalAlerts
).length > 0;
+ const rootClasses = filter.applied
+ ? cs.className
+ : [
+ "badge-secondary components-filteredinputlabel",
+ ...cs.baseClassNames
+ ].join(" ");
+
return (
-
{filter.isValid ? (
filter.applied ? (
showCounter ? (
@@ -90,7 +76,7 @@ const FilterInputLabel = observer(
) : null
) : (
-
+
)
@@ -99,9 +85,9 @@ const FilterInputLabel = observer(
)}
-
+
+
);
}