From 9310d59e0a4c499588ebad2f34c899367ed11f08 Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Fri, 21 Feb 2020 10:37:39 -0500 Subject: [PATCH] Use PF color variables in HostStatus bar --- .../src/components/AlertModal/AlertModal.jsx | 35 ++++++++++++++++--- .../DeleteRoleConfirmationModal.test.jsx.snap | 12 +++---- .../Inventory/shared/InventoryForm.jsx | 2 +- .../src/screens/Job/JobList/JobListItem.jsx | 2 +- 4 files changed, 38 insertions(+), 13 deletions(-) diff --git a/awx/ui_next/src/components/AlertModal/AlertModal.jsx b/awx/ui_next/src/components/AlertModal/AlertModal.jsx index 8b47a8d3f9..a0e3048672 100644 --- a/awx/ui_next/src/components/AlertModal/AlertModal.jsx +++ b/awx/ui_next/src/components/AlertModal/AlertModal.jsx @@ -24,11 +24,36 @@ export default function AlertModal({ ...props }) { const variantIcons = { - danger: , - error: , - info: , - success: , - warning: , + danger: ( + + ), + error: ( + + ), + info: ( + + ), + success: ( + + ), + warning: ( + + ), }; const customHeader = ( diff --git a/awx/ui_next/src/components/ResourceAccessList/__snapshots__/DeleteRoleConfirmationModal.test.jsx.snap b/awx/ui_next/src/components/ResourceAccessList/__snapshots__/DeleteRoleConfirmationModal.test.jsx.snap index d97266c627..635476e44d 100644 --- a/awx/ui_next/src/components/ResourceAccessList/__snapshots__/DeleteRoleConfirmationModal.test.jsx.snap +++ b/awx/ui_next/src/components/ResourceAccessList/__snapshots__/DeleteRoleConfirmationModal.test.jsx.snap @@ -104,7 +104,7 @@ exports[` should render initially 1`] = ` > should render initially 1`] = ` > should render initially 1`] = ` "componentStyle": ComponentStyle { "componentId": "sc-bdVaJa", "isStatic": true, - "lastClassName": "bkDjEn", + "lastClassName": "hIExGP", "rules": Array [ - "color: #c9190b", + "color: var(--pf-global--danger-color--100)", ], }, "displayName": "Styled(ExclamationCircleIcon)", @@ -493,7 +493,7 @@ exports[` should render initially 1`] = ` size="lg" > should render initially 1`] = ` {job.status && } , - +