From 3a6ebd0d3161b1552b33e6f6d2aaf78748b3b065 Mon Sep 17 00:00:00 2001 From: Carla Severe Date: Wed, 6 May 2026 11:46:43 -0700 Subject: [PATCH] reduced the size of perfcompare hero --- .../__snapshots__/ResultsTable.test.tsx.snap | 42 ++++---- .../SubtestsResultsView.test.tsx.snap | 95 +++++++------------ .../CompareWithBase.test.tsx.snap | 2 +- .../SearchResultsList.test.tsx.snap | 2 +- .../__snapshots__/SearchView.test.tsx.snap | 2 +- src/__tests__/__snapshots__/App.test.tsx.snap | 63 +++++------- src/components/Shared/PerfCompareHeader.tsx | 54 ++++++----- src/styles/Header.ts | 2 +- src/styles/SearchContainerStyles.ts | 2 +- 9 files changed, 111 insertions(+), 153 deletions(-) diff --git a/src/__tests__/CompareResults/__snapshots__/ResultsTable.test.tsx.snap b/src/__tests__/CompareResults/__snapshots__/ResultsTable.test.tsx.snap index 76791d86e..045253c30 100644 --- a/src/__tests__/CompareResults/__snapshots__/ResultsTable.test.tsx.snap +++ b/src/__tests__/CompareResults/__snapshots__/ResultsTable.test.tsx.snap @@ -8,7 +8,7 @@ exports[`Results Table Should match snapshot 1`] = ` data-testid="beta-version-compare-results" >
+

+ PerfCompare +

-
-

- PerfCompare -

-
+

+ PerfCompare +

-
-

- PerfCompare -

-
+

+ PerfCompare +

-
-

- PerfCompare -

-
+

+ PerfCompare +

-
-

- PerfCompare -

-
+

+ PerfCompare +

-
-

- PerfCompare -

-
+

+ PerfCompare +

-
-

- PerfCompare -

-
+

+ PerfCompare +

-
-

- PerfCompare -

-
+

+ PerfCompare +

-
-

- PerfCompare -

-
+

+ PerfCompare +

-
-

- PerfCompare -

-
+

+ PerfCompare +

-
-

- PerfCompare -

-
+ {!isHome && ( + + {strings.title} + + )} - - - {strings.title} - - {isHome ? ( - <> - - {strings.tagline} - - - - ) : null} - + {isHome && ( + + + {strings.title} + + + {strings.tagline} + + + + )} ); } diff --git a/src/styles/Header.ts b/src/styles/Header.ts index 37b58e236..3fbc85645 100644 --- a/src/styles/Header.ts +++ b/src/styles/Header.ts @@ -15,7 +15,7 @@ export const HeaderStyles = (mode: string, isHome: boolean) => { container: { padding: 0, width: '100%', - minHeight: isHome ? '357px' : '130px', + minHeight: isHome ? '357px' : 'auto', backgroundColor: isTrueLight ? lightBg : darkBg, backgroundImage: `url(${headerImage.toString()})`, backgroundPosition: 'center', diff --git a/src/styles/SearchContainerStyles.ts b/src/styles/SearchContainerStyles.ts index a7279f9b8..7f911b426 100644 --- a/src/styles/SearchContainerStyles.ts +++ b/src/styles/SearchContainerStyles.ts @@ -10,7 +10,7 @@ export const SearchContainerStyles = (isHome: boolean) => { maxWidth: '973px', marginTop: isHome ? `${Spacing.layoutLarge + 20}px` : '0px', margin: '0 auto', - marginBottom: isHome ? '0px' : `${Spacing.layoutXLarge + 4}px`, + marginBottom: isHome ? '0px' : `${Spacing.xxLarge}px`, display: 'flex', justifyContent: 'center', flexDirection: 'column',