From e1383880d8429b558f675258ed572eb85717e0ef Mon Sep 17 00:00:00 2001 From: Dallas Date: Fri, 21 Jul 2023 10:52:53 -0500 Subject: [PATCH] :bug: (various): styling issues with pf-v5-m vs pf-m (#1177) ## Missing Pencil on tables closes #1166 Also found several `pf-v5-m-` where the version should not be on the modifiers. This affected many items, such as not adding the blue left border to active menu items on the nav panel Aside from removing the `-v5` from `pf-m` modifiers, for the table I also removed the `inline-edit` div as it doesn't appear we are doing inline edits and the styling for the inline-edit was basically just being removed manually by the `enable` modifier. should also closes #1165 --------- Signed-off-by: gitdallas --- client/src/app/common/KeyDisplayToggle.tsx | 2 +- client/src/app/components/target-card.tsx | 2 +- .../__snapshots__/DefaultLayout.test.tsx.snap | 46 +++++++++---------- .../src/app/layout/SidebarApp/SidebarApp.tsx | 28 +++++------ .../__snapshots__/SidebarApp.test.tsx.snap | 12 ++--- .../analysis-wizard/custom-rules.tsx | 4 +- .../applications-table-analyze.tsx | 24 +++++----- .../applications-table-assessment.tsx | 24 +++++----- .../application-form/application-form.tsx | 2 +- .../app/pages/external/jira/tracker-form.tsx | 2 +- .../app-table-with-controls.tsx | 2 +- .../horizontal-nav/horizontal-nav.tsx | 2 +- 12 files changed, 73 insertions(+), 77 deletions(-) diff --git a/client/src/app/common/KeyDisplayToggle.tsx b/client/src/app/common/KeyDisplayToggle.tsx index 1277b2903..f28dbe18f 100644 --- a/client/src/app/common/KeyDisplayToggle.tsx +++ b/client/src/app/common/KeyDisplayToggle.tsx @@ -16,7 +16,7 @@ const KeyDisplayToggle: React.FC = ({ onClick, }: IKeyDisplayToggleProps) => ( diff --git a/client/src/app/components/target-card.tsx b/client/src/app/components/target-card.tsx index d5bf25d17..146d58792 100644 --- a/client/src/app/components/target-card.tsx +++ b/client/src/app/components/target-card.tsx @@ -124,7 +124,7 @@ export const TargetCard: React.FC = ({ onClick={handleCardClick} isSelectable={!!cardSelected} isSelected={isCardSelected} - className="pf-v5-l-stack pf-v5-l-stack__item pf-v5-m-fill" + className="pf-v5-l-stack pf-v5-l-stack__item pf-m-fill" > diff --git a/client/src/app/layout/DefaultLayout/tests/__snapshots__/DefaultLayout.test.tsx.snap b/client/src/app/layout/DefaultLayout/tests/__snapshots__/DefaultLayout.test.tsx.snap index ac3bd1792..016c52de7 100644 --- a/client/src/app/layout/DefaultLayout/tests/__snapshots__/DefaultLayout.test.tsx.snap +++ b/client/src/app/layout/DefaultLayout/tests/__snapshots__/DefaultLayout.test.tsx.snap @@ -6,14 +6,14 @@ Object { "baseElement":