From 4ec1e3d9b68049a5c6508be2b0a853460bb736e5 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Tue, 29 Jul 2025 10:33:58 -0400 Subject: [PATCH] Revert "Merge pull request #2654 from Safelite/CASH-1042-header-and-progress-bar-style-updates" this is a revert of the revert: Revert "Merge pull request #2654 from Safelite/CASH-1042-header-and-progress-bar-style-updates" --- 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 | 54 ++-- .../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 | 30 +-- 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, 624 insertions(+), 538 deletions(-) diff --git a/public/css/site-2020Styling.css b/public/css/site-2020Styling.css index a605df285..e47350565 100644 --- a/public/css/site-2020Styling.css +++ b/public/css/site-2020Styling.css @@ -194,16 +194,6 @@ 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 ec72ae1b9..b3b4b21ce 100644 --- a/public/scss/site-2020Styling.scss +++ b/public/scss/site-2020Styling.scss @@ -188,17 +188,6 @@ 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 50b353151..f177b6cf7 100644 --- a/src/constants/progress-bar-mapper.js +++ b/src/constants/progress-bar-mapper.js @@ -1,28 +1,95 @@ -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 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, + }, }; export const getProgressBarPercentage = (page) => { - return pagePercentageMapper[page] || 0; + return pageProgressMapper[page]?.percent || 0; +}; + +export const getProgressBarStep = (page) => { + return pageProgressMapper[page]?.step || 1; }; diff --git a/src/digital-components/button-question/button-question.vue b/src/digital-components/button-question/button-question.vue index 2eaf204ad..82fbf424c 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,10 +83,7 @@ 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 a2ee0b3c1..bb55e61ec 100644 --- a/src/digital-components/dropdown-question/dropdown-question.vue +++ b/src/digital-components/dropdown-question/dropdown-question.vue @@ -152,6 +152,7 @@ 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 41f9d2d8a..e05ff408a 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,19 +66,18 @@ export default { .btn { &.btn-primary { position: relative; - background: linear-gradient(270deg, $blue 0%, $blue-800 100%); + background: $red; border: none; - border-radius: $border-radius-lg; color: $white; justify-content: center; font-weight: 500; @media (hover: hover) { - background: linear-gradient(270deg, $blue 0%, $blue-800 100%); + background: $red; } &:focus { box-shadow: 0 0 0 3px, - 0 0 0 5.5px $blue-700; + 0 0 0 5.5px $red; } &:focus, // Mouse, touch, stylus focus &:focus-visible { @@ -86,27 +85,26 @@ export default { outline: none; box-shadow: 0 0 0 3px, - 0 0 0 5.5px $blue-700; + 0 0 0 5.5px $red; color: $white; - background: linear-gradient(270deg, rgba(6, 87, 124, 1) 0%, rgba(6, 87, 124, 1) 100%); + background: $red; } &:disabled { background: $gray-200 !important; - background: linear-gradient(270deg, $gray-200 0%, $gray-200 100%) !important; + background: $red !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: $blue-700; + background: $red; box-shadow: 0 0 0 3px, - 0 0 0 5.5px $blue-700; + 0 0 0 5.5px $red; pointer-events: none; } &.delay { @@ -117,8 +115,7 @@ export default { &.btn-secondary { position: relative; background: transparent; - border: 1px solid $blue; - border-radius: $border-radius-lg; + border: 1px solid $red; color: $blue; font-weight: 500; transition: all 150ms linear; @@ -133,7 +130,7 @@ export default { outline: none; box-shadow: 0 0 0 3px $white, - 0 0 0 5.5px $blue-700; + 0 0 0 5.5px $red; color: $white; @include blue-gradient; } @@ -142,14 +139,12 @@ export default { color: $gray-550 !important; font-weight: 400; height: 48px; - border: 1px solid $gray-550; - border-radius: $border-radius-lg; + border: 1px solid $red; 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 23ff83d0b..7fc43baf1 100644 --- a/src/digital-components/textbox-question/textbox-question.vue +++ b/src/digital-components/textbox-question/textbox-question.vue @@ -337,6 +337,7 @@ 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 b77115f70..fa2401952 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -1286,11 +1286,11 @@ export default { &:after { content: ""; transition: all 0.5s ease; - 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-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-repeat: no-repeat; background-position: right center; - width: 16px; - height: 9px; + width: 24px; + height: 24px; 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 ca8be5bf0..a195c446b 100644 --- a/src/fmg-components/funnel-footer/funnel-footer.vue +++ b/src/fmg-components/funnel-footer/funnel-footer.vue @@ -1,15 +1,5 @@