From 2e7f931935d37198577b866116e09c8925ff86c6 Mon Sep 17 00:00:00 2001 From: Bryan Mauger Date: Thu, 17 Jul 2025 09:15:15 -0400 Subject: [PATCH] Revert "Merge pull request #2654 from Safelite/CASH-1042-header-and-progress-bar-style-updates" This reverts commit bc6cfd58e0be7145677321e9ee5003e54cd2395c, reversing changes made to 28390818664b615db25ebdcda531d8f932d22d34. --- public/css/site-2020Styling.css | 10 + public/scss/site-2020Styling.scss | 11 + src/constants/progress-bar-mapper.js | 115 ++------ .../button-question/button-question.vue | 13 +- .../dropdown-question/dropdown-question.vue | 1 - .../modal-button-main/modal-button-main.vue | 27 +- .../textbox-question/textbox-question.vue | 1 - src/fmg-components/cart/cart.vue | 6 +- .../funnel-footer/funnel-footer.vue | 21 +- .../funnel-header/funnel-header.vue | 58 ++-- .../funnel-header/menu-modal/menu-modal.vue | 252 ++++++------------ .../progress-bar/progress-bar.vue | 82 +++--- .../funnel-sub-header/funnel-sub-header.vue | 30 ++- .../questions-page-layout.vue | 32 ++- .../save-progress-modal-question.vue | 22 +- src/layouts/address-lookup/address-lookup.vue | 17 +- .../customer-details/customer-details.vue | 16 +- src/layouts/estimate/estimate.vue | 42 ++- .../insurance-company/insurance-company.vue | 12 +- .../license-plate-lookup.vue | 12 +- .../payment-method-list-button.vue | 1 - src/layouts/payment-method/payment-method.vue | 34 ++- .../review-dropdown/review-dropdown.vue | 6 +- src/layouts/payment/payment.spec.js | 2 +- src/layouts/payment/payment.vue | 13 +- .../afterpay-modal-banner.vue | 5 +- src/layouts/quote/quote.vue | 49 +--- src/layouts/return-user/return-user.vue | 11 +- src/layouts/schedule/schedule.vue | 12 +- .../time-slot-modal-list-button.vue | 1 - .../service-location/service-location.vue | 39 ++- .../service-zip-modal-question.vue | 2 +- .../shop-list-button/shop-list-button.vue | 9 +- .../shop-question/shop-question.vue | 2 +- src/layouts/service-zip/service-zip.vue | 15 +- src/layouts/vehicle-damage/vehicle-damage.vue | 24 +- src/layouts/vehicle-parts/vehicle-parts.vue | 34 ++- src/layouts/vehicle/vehicle.vue | 12 +- .../vin-information/vin-information.vue | 6 +- src/layouts/vin-lookup/vin-lookup.vue | 12 +- src/styles/common-error-styles.scss | 8 +- src/styles/common-styles.scss | 13 +- src/styles/shared-input-button-styles.scss | 19 -- src/styles/ux-variables.scss | 1 - src/ux-components/button-main/button-main.vue | 45 ++-- .../list-button-horizontal.vue | 1 - src/ux-components/list-button/list-button.vue | 5 +- src/ux-components/list-card/list-card.vue | 1 - src/ux-components/text-link/text-link.vue | 8 +- 49 files changed, 542 insertions(+), 628 deletions(-) diff --git a/public/css/site-2020Styling.css b/public/css/site-2020Styling.css index e47350565..a605df285 100644 --- a/public/css/site-2020Styling.css +++ b/public/css/site-2020Styling.css @@ -194,6 +194,16 @@ html .in-shop.vspacing .list-group.radio.vspacing .list-group-item { margin-bottom: 2px; } +@media (min-width: 500px) { + .form-group { + width: 80%; + } +} +@media (min-width: 800px) { + .form-group { + width: 60%; + } +} .list-group { margin-bottom: 20px; padding-left: 0; diff --git a/public/scss/site-2020Styling.scss b/public/scss/site-2020Styling.scss index b3b4b21ce..ec72ae1b9 100644 --- a/public/scss/site-2020Styling.scss +++ b/public/scss/site-2020Styling.scss @@ -188,6 +188,17 @@ margin-bottom: 2px; } + @media (min-width: 500px) { + .form-group { + width: 80%; + } + } + @media (min-width: 800px) { + .form-group { + width: 60%; + } + } + .list-group { margin-bottom: 20px; padding-left: 0; diff --git a/src/constants/progress-bar-mapper.js b/src/constants/progress-bar-mapper.js index f177b6cf7..50b353151 100644 --- a/src/constants/progress-bar-mapper.js +++ b/src/constants/progress-bar-mapper.js @@ -1,95 +1,28 @@ -export const pageProgressMapper = { - //Combine progress bar slide percent and button steps - vehicle: { - percent: 7, - step: 1, - }, - "vehicle-damage": { - percent: 10, - step: 1, - }, - estimate: { - percent: 14, - step: 1, - }, - "service-zip": { - percent: 18, - step: 1, - }, - "vin-lookup": { - percent: 18, - step: 1, - }, - "license-plate-lookup": { - percent: 18, - step: 1, - }, - "address-lookup": { - percent: 18, - step: 1, - }, - "address-vehicles": { - percent: 25, - step: 1, - }, - "part-questions": { - percent: 30, - step: 1, - }, - "molding-questions": { - percent: 30, - step: 1, - }, - "vehicle-parts": { - percent: 30, - step: 1, - }, - "capability-questions": { - percent: 30, - step: 1, - }, - quote: { - percent: 39, //Must be 39 - step: 2, - }, - "insurance-company": { - percent: 52, - step: 2, - }, - "service-location": { - percent: 60, - step: 2, - }, - schedule: { - percent: 70.5, //Must be 70.5 - step: 3, - }, - "mobile-details": { - percent: 76, - step: 3, - }, - "customer-details": { - percent: 84, - step: 3, - }, - "payment-method": { - percent: 92, //Must be 92 - step: 3, - }, - payment: { - percent: 96, - step: 4, - }, - confirmation: { - percent: 100, - step: 4, - }, +const pagePercentageMapper = { + vehicle: 4, + "vehicle-damage": 16, + estimate: 28, + "service-zip": 32, + "vin-lookup": 32, + "license-plate-lookup": 32, + "address-lookup": 32, + "address-vehicles": 36, + "part-questions": 40, + "molding-questions": 40, + "vehicle-parts": 40, + "capability-questions": 40, + quote: 48, + "insurance-company": 52, + // TODO: REMOVE THIS COMMENT AND BELOW, ONCE CASH-803 (SERVICE-LOCATION AND SCHEDULE PAGE COMBINATION) HAS BEEN VETTED + // "service-location": 60, + schedule: 64, + "mobile-details": 76, + "customer-details": 84, + "payment-method": 92, + payment: 96, + confirmation: 100, }; export const getProgressBarPercentage = (page) => { - return pageProgressMapper[page]?.percent || 0; -}; - -export const getProgressBarStep = (page) => { - return pageProgressMapper[page]?.step || 1; + return pagePercentageMapper[page] || 0; }; diff --git a/src/digital-components/button-question/button-question.vue b/src/digital-components/button-question/button-question.vue index 82fbf424c..2eaf204ad 100644 --- a/src/digital-components/button-question/button-question.vue +++ b/src/digital-components/button-question/button-question.vue @@ -7,7 +7,7 @@ https://safelite.atlassian.net/wiki/spaces/DC/pages/76644418/Button+Question+Com ">
{{ questionText }} @@ -83,7 +83,10 @@ https://safelite.atlassian.net/wiki/spaces/DC/pages/76644418/Button+Question+Com
-
+
({ buttonLabel: answer.buttonLabel ?? answer.Text ?? answer, diff --git a/src/digital-components/dropdown-question/dropdown-question.vue b/src/digital-components/dropdown-question/dropdown-question.vue index bb55e61ec..a2ee0b3c1 100644 --- a/src/digital-components/dropdown-question/dropdown-question.vue +++ b/src/digital-components/dropdown-question/dropdown-question.vue @@ -152,7 +152,6 @@ export default { border: 1px solid $gray-500; border-radius: 0.5rem; min-height: 3rem; - box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.2); @include media-breakpoint-up(md) { min-height: 3.5rem; } diff --git a/src/digital-components/modal/ux-components/modal-button-main/modal-button-main.vue b/src/digital-components/modal/ux-components/modal-button-main/modal-button-main.vue index e05ff408a..41f9d2d8a 100644 --- a/src/digital-components/modal/ux-components/modal-button-main/modal-button-main.vue +++ b/src/digital-components/modal/ux-components/modal-button-main/modal-button-main.vue @@ -66,18 +66,19 @@ export default { .btn { &.btn-primary { position: relative; - background: $red; + background: linear-gradient(270deg, $blue 0%, $blue-800 100%); border: none; + border-radius: $border-radius-lg; color: $white; justify-content: center; font-weight: 500; @media (hover: hover) { - background: $red; + background: linear-gradient(270deg, $blue 0%, $blue-800 100%); } &:focus { box-shadow: 0 0 0 3px, - 0 0 0 5.5px $red; + 0 0 0 5.5px $blue-700; } &:focus, // Mouse, touch, stylus focus &:focus-visible { @@ -85,26 +86,27 @@ export default { outline: none; box-shadow: 0 0 0 3px, - 0 0 0 5.5px $red; + 0 0 0 5.5px $blue-700; color: $white; - background: $red; + background: linear-gradient(270deg, rgba(6, 87, 124, 1) 0%, rgba(6, 87, 124, 1) 100%); } &:disabled { background: $gray-200 !important; - background: $red !important; + background: linear-gradient(270deg, $gray-200 0%, $gray-200 100%) !important; color: $gray-600 !important; font-weight: 400; height: 48px; border: none; + border-radius: $border-radius-lg; cursor: pointer; pointer-events: all; } &.has-loader { color: $white; - background: $red; + background: $blue-700; box-shadow: 0 0 0 3px, - 0 0 0 5.5px $red; + 0 0 0 5.5px $blue-700; pointer-events: none; } &.delay { @@ -115,7 +117,8 @@ export default { &.btn-secondary { position: relative; background: transparent; - border: 1px solid $red; + border: 1px solid $blue; + border-radius: $border-radius-lg; color: $blue; font-weight: 500; transition: all 150ms linear; @@ -130,7 +133,7 @@ export default { outline: none; box-shadow: 0 0 0 3px $white, - 0 0 0 5.5px $red; + 0 0 0 5.5px $blue-700; color: $white; @include blue-gradient; } @@ -139,12 +142,14 @@ export default { color: $gray-550 !important; font-weight: 400; height: 48px; - border: 1px solid $red; + border: 1px solid $gray-550; + border-radius: $border-radius-lg; cursor: pointer; pointer-events: all; } &.has-loader { color: $white; + @include blue-gradient; pointer-events: none; } &.delay { diff --git a/src/digital-components/textbox-question/textbox-question.vue b/src/digital-components/textbox-question/textbox-question.vue index 9aa41e64e..7df4436f1 100644 --- a/src/digital-components/textbox-question/textbox-question.vue +++ b/src/digital-components/textbox-question/textbox-question.vue @@ -337,7 +337,6 @@ export default { border-radius: 0.5rem; min-height: 3rem; padding: 0.75rem 1rem; - box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.2); @include media-breakpoint-up(md) { padding: 1rem; min-height: 3.5rem; diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index 17e73c03e..fb717d283 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -1316,11 +1316,11 @@ export default { &:after { content: ""; transition: all 0.5s ease; - background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%230070D1' d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm6.113 11.28-5.52 5.52a.84.84 0 0 1-1.186 0l-5.52-5.52a.843.843 0 1 1 1.186-1.2L12 15.012l4.927-4.932a.843.843 0 1 1 1.186 1.2Z'/%3E%3C/svg%3E"); + background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8.9' xml:space='preserve'%3e%3cpath d='M8 8.9c-.2 0-.5-.1-.6-.3L.3 1.5C.1 1.4 0 1.1 0 .9 0 .7.1.4.3.3.4.1.7 0 .9 0c.2 0 .5.1.6.3L8 6.7 14.5.2c.1-.1.4-.2.6-.2.2 0 .5.1.6.3s.3.4.3.6c0 .2-.1.5-.3.6L8.6 8.6c-.1.2-.4.3-.6.3z' fill='%231474a2'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right center; - width: 24px; - height: 24px; + width: 16px; + height: 9px; display: inline-flex; position: relative; right: 0.75rem; diff --git a/src/fmg-components/funnel-footer/funnel-footer.vue b/src/fmg-components/funnel-footer/funnel-footer.vue index a195c446b..ca8be5bf0 100644 --- a/src/fmg-components/funnel-footer/funnel-footer.vue +++ b/src/fmg-components/funnel-footer/funnel-footer.vue @@ -1,5 +1,15 @@