Update styles/layout for service-location parity

- Updated subheader on service-location
- Update list-button styles so that inshop/mobile buttons match heritage
This commit is contained in:
Alex Humphries 2026-01-05 10:52:25 -05:00
parent 2a1b3b0bb3
commit 34c6a1651e
6 changed files with 46 additions and 72 deletions

View file

@ -329,7 +329,7 @@ export default {
} }
.question-text { .question-text {
margin-bottom: 1rem; margin-bottom: .625rem;
font-size: 1rem; font-size: 1rem;
line-height: 1.625rem; line-height: 1.625rem;

View file

@ -1,24 +1,23 @@
<template> <template>
<transition <transition
name="fade" name="fade"
mode="out-in"> mode="out-in">
<div <div
v-if="isDisplayed" v-if="isDisplayed"
class="appointment-type-question" class="appointment-type-question"
aria-live="polite"> aria-live="polite">
<buttonQuestion <buttonQuestion
ref="buttonQuestion" ref="buttonQuestion"
v-model="selectedValues" v-model="selectedValues"
customButtonQuestionId="appointmentTypeQuestion" customButtonQuestionId="appointmentTypeQuestion"
:questionText="questionText" :questionText="questionText"
:answers="answersToDisplay" :answers="answersToDisplay"
:groupName="groupName" :groupName="groupName"
buttonTypeString="listCard" :suppressError="suppressError"
:suppressError="suppressError" :validationRules="validationRules"
:validationRules="validationRules" isRequired />
isRequired /> </div>
</div> </transition>
</transition>
</template> </template>
<script> <script>
@ -126,10 +125,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
:deep(.button-question) { :deep(.question-text) {
.list-card img { font-weight: 600;
height: auto;
width: 3.417rem;
}
} }
</style> </style>

View file

@ -12,8 +12,8 @@
<div class="service-location-container iss-heritage-content-container-width"> <div class="service-location-container iss-heritage-content-container-width">
<siteSubHeader <siteSubHeader
cmsWidgetName="SiteSubHeaderWidget" cmsWidgetName="SiteSubHeaderWidget"
class="mt-4" /> class="subheader" />
<serviceZipModalQuestion <!-- <serviceZipModalQuestion
ref="serviceZipCodeQuestion" ref="serviceZipCodeQuestion"
v-model="serviceZipCodeQuestion" v-model="serviceZipCodeQuestion"
modalWidgetName="ServiceZipModalWidget" modalWidgetName="ServiceZipModalWidget"
@ -21,7 +21,7 @@
@updatedServiceability="setServiceabilityDetails" @updatedServiceability="setServiceabilityDetails"
@updatedContainsMilitaryBase=" @updatedContainsMilitaryBase="
setContainsMilitaryBase setContainsMilitaryBase
" /> " /> -->
<alert <alert
v-if="displayMilitaryZipAlert" v-if="displayMilitaryZipAlert"
ref="alertMilitaryBaseZip" ref="alertMilitaryBaseZip"
@ -542,7 +542,7 @@ export default {
}; };
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
$page-side-padding: 1.5rem; $page-side-padding: 1.5rem;
.iss-heritage-container-width { .iss-heritage-container-width {
@ -554,6 +554,12 @@ $page-side-padding: 1.5rem;
} }
} }
.service-location-container {
.subheader {
margin: 1.25rem 0;
}
}
.question-text { .question-text {
span { span {
line-height: 1.5rem; line-height: 1.5rem;
@ -582,24 +588,6 @@ $page-side-padding: 1.5rem;
padding-left: 0rem !important; padding-left: 0rem !important;
} }
} }
.appointment-type-question {
.row {
margin-top: 0;
.col-12 {
margin: 0 0 .5rem 0;
&:last-child {
margin-bottom: 0;
}
}
}
.question-text {
margin: 0;
span {
padding: 1rem 0;
text-align: center;
}
}
}
.service-location-button-question { .service-location-button-question {
.question-text { .question-text {
margin-top: 1.5rem; margin-top: 1.5rem;

View file

@ -1,15 +1,5 @@
.base-input-button { .base-input-button {
&:not(.has-error):hover { &:not(:disabled):hover {
cursor: pointer; cursor: pointer;
&.list-button,
&.list-button-horizontal,
&.list-card {
&:not(.selected) {
position: relative;
z-index: 5;
@include box-shadow-hover($blue-300);
}
}
} }
} }

View file

@ -153,6 +153,7 @@ $font-weight-bolder: bolder;
$border-radius: 0.25rem; $border-radius: 0.25rem;
$border-radius-sm: 0.2rem; $border-radius-sm: 0.2rem;
$border-radius-lg: 0.5rem; //Used for buttons. Can be used for other things, of course. $border-radius-lg: 0.5rem; //Used for buttons. Can be used for other things, of course.
$border-radius-xl: 1.375rem;
$border-radius-pill: 50rem; $border-radius-pill: 50rem;
//Progress Bar Styling //Progress Bar Styling

View file

@ -2,7 +2,7 @@
<baseInputButton <baseInputButton
v-bind="$props" v-bind="$props"
v-model="selectedValue" v-model="selectedValue"
buttonWrapperClasses="list-group base-input-button list-button rounded-3 d-flex flex-column w-100 mb-2"> buttonWrapperClasses="list-group base-input-button list-button d-flex flex-column w-100">
<div <div
:aria-label="buttonLabel" :aria-label="buttonLabel"
class="button-content list-button-content d-flex flex-column justify-content-center py-3 px-4"> class="button-content list-button-content d-flex flex-column justify-content-center py-3 px-4">
@ -72,24 +72,20 @@ export default {
} }
.list-button { .list-button {
outline: none; outline: none;
border-radius: $border-radius-xl;
input[type="radio"], input[type="radio"],
input[type="checkbox"] { input[type="checkbox"] {
position: static; //override bootstrap position: static; //override bootstrap
&:focus-visible + .list-button-content { &:focus-within + .list-button-content {
box-shadow: 0 0 0 2.5px $blue; border: $border-input-focus;
}
&:focus + .list-button-content {
box-shadow: 0 0 0 2.5px $blue;
} }
&:checked + .list-button-content { &:checked + .list-button-content {
color: $black; color: $black;
font-weight: 500; font-weight: 500;
background: $blue-100; background: #e7f1f6;
box-shadow: 0 0 0 1px $blue; border-color: #0070d1;
}
&:checked:focus + .list-button-content {
box-shadow: 0 0 0 2.5px $blue;
} }
&:checked + .list-button-content p, &:checked + .list-button-content p,
&:checked + .list-button-content span { &:checked + .list-button-content span {
@ -106,10 +102,13 @@ export default {
position: relative; position: relative;
background: $white; background: $white;
transition: all 150ms linear; transition: all 150ms linear;
border-radius: $border-radius-lg; border-radius: $border-radius-xl;
border: 1px solid $gray-500; border: 1px solid $gray-350;
width: 100%; width: 100%;
outline: none; outline: none;
box-shadow: $box-shadow-input;
height: 2.8125rem;
margin-bottom: .625rem;
span { span {
&.small { &.small {