From cf0baa7ab042d3ad094ca314c3115a656a454d56 Mon Sep 17 00:00:00 2001
From: gillespi314 <73313222+gillespi314@users.noreply.github.com>
Date: Wed, 27 Oct 2021 12:15:13 -0500
Subject: [PATCH] Restyle button for policy filter & software filter (#2679)
---
changes/issue-2638-restyle-button | 2 +
.../hosts/ManageHostsPage/ManageHostsPage.tsx | 89 +++++++++----------
.../pages/hosts/ManageHostsPage/_styles.scss | 52 +++++++----
3 files changed, 83 insertions(+), 60 deletions(-)
create mode 100644 changes/issue-2638-restyle-button
diff --git a/changes/issue-2638-restyle-button b/changes/issue-2638-restyle-button
new file mode 100644
index 0000000000..f2193364c2
--- /dev/null
+++ b/changes/issue-2638-restyle-button
@@ -0,0 +1,2 @@
+* Restyle UI for filter-by-software and filter-by-policy buttons on manage hosts page to localize
+clear filter click to "x" icon
\ No newline at end of file
diff --git a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx
index 111154eadb..63d1795e85 100644
--- a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx
+++ b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx
@@ -77,7 +77,7 @@ import AddHostModal from "./components/AddHostModal";
import EditColumnsIcon from "../../../../assets/images/icon-edit-columns-16x16@2x.png";
import PencilIcon from "../../../../assets/images/icon-pencil-14x14@2x.png";
import TrashIcon from "../../../../assets/images/icon-trash-14x14@2x.png";
-import CloseIcon from "../../../../assets/images/icon-action-close-16x15@2x.png";
+import CloseIcon from "../../../../assets/images/icon-close-vibrant-blue-16x16@2x.png";
import PolicyIcon from "../../../../assets/images/icon-policy-fleet-black-12x12@2x.png";
interface IManageHostsProps {
@@ -902,27 +902,24 @@ const ManageHostsPage = ({
);
const renderPoliciesFilterBlock = () => {
- const buttonText = (
- <>
-
- {policy?.query_name}
-
- >
- );
return (