From ed87e097f147f10fe51498cd94ffcf64893354ff Mon Sep 17 00:00:00 2001 From: Mayur Shinde Date: Wed, 10 Jun 2026 14:05:43 +0530 Subject: [PATCH] estimate wizard now fully responsive-mobile first --- .../estimateWizard/CustomerEstimateWizard.jsx | 4 +-- .../estimateWizard/components/WizardShell.jsx | 32 +++++++++++-------- .../components/steps/AddonsStep.jsx | 6 ++-- tailwind.config.js | 6 ++++ 4 files changed, 30 insertions(+), 18 deletions(-) diff --git a/src/modules/estimateWizard/CustomerEstimateWizard.jsx b/src/modules/estimateWizard/CustomerEstimateWizard.jsx index dd98808..faa59c6 100644 --- a/src/modules/estimateWizard/CustomerEstimateWizard.jsx +++ b/src/modules/estimateWizard/CustomerEstimateWizard.jsx @@ -12,7 +12,7 @@ import WizardShell from './components/WizardShell'; const CompletionScreen = () => { const { inputs, reset } = useEstimateWizard(); return ( -
+

@@ -34,7 +34,7 @@ const CompletionScreen = () => { }; const FeatureDisabledScreen = () => ( -
+

Estimate wizard unavailable

diff --git a/src/modules/estimateWizard/components/WizardShell.jsx b/src/modules/estimateWizard/components/WizardShell.jsx index 3d0d76f..89a5e46 100644 --- a/src/modules/estimateWizard/components/WizardShell.jsx +++ b/src/modules/estimateWizard/components/WizardShell.jsx @@ -102,14 +102,14 @@ const WizardShell = () => { }; return ( -

+
{/* Top bar */}
-
-
- +
+
+ LynkedUpPro - Roof Options + Roof Options )} {step.skippable && !isLast && ( @@ -172,13 +176,13 @@ const WizardShell = () => {
diff --git a/src/modules/estimateWizard/components/steps/AddonsStep.jsx b/src/modules/estimateWizard/components/steps/AddonsStep.jsx index 2ccffd9..e0f456b 100644 --- a/src/modules/estimateWizard/components/steps/AddonsStep.jsx +++ b/src/modules/estimateWizard/components/steps/AddonsStep.jsx @@ -52,8 +52,10 @@ const AddonsStep = () => { triggers={triggers} /> - {/* Running total for the selected package */} -
+ {/* Running total for the selected package. Not sticky — the wizard's + footer CTA is already pinned, and two stacked sticky bars overlap on + mobile. */} +
{pkg?.name} (base estimate) {formatUSD(base)} diff --git a/tailwind.config.js b/tailwind.config.js index 0d36508..14d5911 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -7,6 +7,12 @@ export default { darkMode: 'class', theme: { extend: { + // Extra-small breakpoint for fine mobile-first control (additive — does not + // affect the default sm/md/lg/xl screens). + screens: { + xs: '400px', + }, + // --- Typography --- fontFamily: { display: ['"Instrument Serif"', 'Georgia', 'serif'],