From 629f408d31ea4cb1c2fb5402b14acf7257b6ac21 Mon Sep 17 00:00:00 2001 From: RachelElysia <71795832+RachelElysia@users.noreply.github.com> Date: Wed, 19 Jul 2023 10:40:59 -0400 Subject: [PATCH] Fleet UI styleguide update: Replace all search bars and icons with new styling (#12312) --- .../icon-search-fleet-black-16x16@2x.png | Bin 841 -> 0 bytes .../components/TableContainer/_styles.scss | 11 ------ .../ConfirmInviteForm/ConfirmInviteForm.jsx | 4 +++ .../ForgotPasswordForm/ForgotPasswordForm.jsx | 10 ++++-- .../{helpers.js => validate.js} | 8 ++--- .../components/forms/LoginForm/LoginForm.jsx | 8 ++++- .../ResetPasswordForm/ResetPasswordForm.jsx | 2 ++ .../InputFieldWithIcon/InputFieldWithIcon.jsx | 7 +++- .../fields/InputFieldWithIcon/_styles.scss | 20 +++++++++-- .../forms/fields/SearchField/SearchField.tsx | 9 +++-- frontend/components/icons/Search.tsx | 32 ++++++++++++++++++ frontend/components/icons/index.ts | 2 ++ .../CustomLabelGroupHeading.tsx | 1 + .../CustomLabelGroupHeading/_styles.scss | 15 ++++---- .../SelectQueryModal/SelectQueryModal.tsx | 10 ++++-- .../modals/SelectQueryModal/_styles.scss | 11 ------ 16 files changed, 101 insertions(+), 49 deletions(-) delete mode 100644 assets/images/icon-search-fleet-black-16x16@2x.png rename frontend/components/forms/ForgotPasswordForm/{helpers.js => validate.js} (75%) create mode 100644 frontend/components/icons/Search.tsx diff --git a/assets/images/icon-search-fleet-black-16x16@2x.png b/assets/images/icon-search-fleet-black-16x16@2x.png deleted file mode 100644 index 923a571e2e29b9504f0e071ec2246e120831824f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 841 zcmV-P1GfB$P)x?4!YeJFxeTQ5(KoHhlnc;PR%ZFJc4_~E?4<8itH#b ziOq3uuHE!ce`YbT2)vqE-Z6&CIRp1&l1r8C1SZs~VkgI<6N9}= zv`fCO`A7i!D0PTL!Q^Qn?#6U(zvK+qaF^L{rv(qe0ZP37qcG($vHdtZ>SW)Lf`?9# z6LFQeH0|e7B3yy%qTojl5=iD&~ufX@`G5pmByl-4@8kBo_y zM@`PGe8vD^yDdm<9rRUN@A|%Ojd`48bLvdvd(QYKO6ku4-5tQ2*trH~Dr0KJn)SgJT1iGd)JutX`V*`qOUp6|)nl4c49yZ5s& z!8-dsZ2Bj?`%P-aU3D{Uj5$CKaI>j7CRhkFg?y&mNWV}7bq7-4jBXSY%sM|xYy4Zd z+hRkpO7*arwa_Z}E1pE1*|#031mZ|#dHcyiVju!}kV2w%?*!6F{1*ZVB diff --git a/frontend/components/forms/ForgotPasswordForm/ForgotPasswordForm.jsx b/frontend/components/forms/ForgotPasswordForm/ForgotPasswordForm.jsx index 39f4b2ac2a..83a20af976 100644 --- a/frontend/components/forms/ForgotPasswordForm/ForgotPasswordForm.jsx +++ b/frontend/components/forms/ForgotPasswordForm/ForgotPasswordForm.jsx @@ -4,12 +4,11 @@ import PropTypes from "prop-types"; import Button from "components/buttons/Button"; import Form from "components/forms/Form"; import formFieldInterface from "interfaces/form_field"; -import helpers from "components/forms/ForgotPasswordForm/helpers"; import InputFieldWithIcon from "components/forms/fields/InputFieldWithIcon"; +import validate from "./validate"; const baseClass = "forgot-password-form"; const fieldNames = ["email"]; -const { validate } = helpers; class ForgotPasswordForm extends Component { static propTypes = { @@ -26,7 +25,12 @@ class ForgotPasswordForm extends Component { return (
{baseError &&
{baseError}
} - +
+
-
{(!isOnlyObserver || isObserverPlus || isHostsTeamObserverPlus) && ( @@ -160,12 +162,14 @@ const SelectQueryModal = ({
-
{(!isOnlyObserver || isObserverPlus || isHostsTeamObserverPlus) && ( diff --git a/frontend/pages/hosts/details/HostDetailsPage/modals/SelectQueryModal/_styles.scss b/frontend/pages/hosts/details/HostDetailsPage/modals/SelectQueryModal/_styles.scss index a97628ecd9..9cff3c71b3 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/modals/SelectQueryModal/_styles.scss +++ b/frontend/pages/hosts/details/HostDetailsPage/modals/SelectQueryModal/_styles.scss @@ -43,17 +43,6 @@ flex-grow: 3; position: relative; - &::before { - display: inline-block; - position: absolute; - padding: 5px 0 0 0; // centers spin - content: url(../assets/images/icon-search-fleet-black-16x16@2x.png); - transform: scale(0.5); - height: 20px; - top: 3px; - left: 8px; - } - .form-field { margin-bottom: 0; }