Merge branch 'develop' into SSR-348-site-header-unstick-2

This commit is contained in:
bmauger 2023-04-10 14:57:08 -04:00 committed by GitHub
commit dc23709a43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 66 additions and 19 deletions

View file

@ -67,7 +67,7 @@
</div> </div>
</fieldset> </fieldset>
</div> </div>
<div class="row form-test-error mt-1 px-5"> <div class="row form-test-error mt-1">
<error-message <error-message
:name="formatString(groupName)" :name="formatString(groupName)"
v-if="!suppressError"></error-message> v-if="!suppressError"></error-message>

View file

@ -1,5 +1,5 @@
<template> <template>
<div v-for="(q, i) in questions" :key="i"> <div v-for="(q, i) in questions" :key="i" class="questionBlock" >
<transition appear name="fade" mode="out-in"> <transition appear name="fade" mode="out-in">
<buttonQuestion <buttonQuestion
v-if="q.answerSelected || q.questionSequence === currentQuestionNum" v-if="q.answerSelected || q.questionSequence === currentQuestionNum"
@ -161,3 +161,12 @@ export default {
}, },
}; };
</script> </script>
<style lang="scss">
.questionBlock:not(:nth-of-type(1)){
.button-question.radioQuestion >div {
margin-top: 0.73rem;
}
}
</style>

View file

@ -14,7 +14,6 @@
class="mt-0 body-text" class="mt-0 body-text"
></div> ></div>
<shoppreferenceModal cmsWidgetName="ShopPreferenceDrawer" /> <shoppreferenceModal cmsWidgetName="ShopPreferenceDrawer" />
<buttonQuestion <buttonQuestion
cmsWidgetName="ServiceLocationQuestion" cmsWidgetName="ServiceLocationQuestion"
:questionText="questionText" :questionText="questionText"
@ -140,19 +139,19 @@ export default {
} }
} }
#sub-header span{ #sub-header span{
color: #000000; color: $black;
} }
.body-text p{ .body-text {
margin-bottom: 0.5rem; color: $darker-gray;
p, li {
margin-bottom: 0.5rem;
} }
.body-text li{
margin-bottom: 0.5rem;
} }
.modal-link a{ .modal-link a{
color:#06577C; color: $blue-700;
font-size: 14px; font-size: 14px;
line-height: 24px; line-height: 24px;
font-weight: 500; font-weight: 500;
} }
.question-text { .question-text {
margin-top: 0; margin-top: 0;

View file

@ -0,0 +1,32 @@
import { shallowMount } from "@vue/test-utils";
import { getMountOptions } from "@/helpers/unit-test-helper.js";
import serviceLocationModal from "@/layouts/service-location/service-location.vue";
describe("navigation", () => {
test("if the back button is clicked, navigate back", async () => {
// Arrange
const { wrapper } = setupMocks({
});
// Act
await wrapper.vm.backButtonAction();
// Assert
expect(wrapper.vm.$router.navigate).toHaveBeenCalled();
});
});
function setupMocks()
{
const wrapper = shallowMount(
serviceLocationModal,
getMountOptions({
router: {
navigate: jest.fn(),
},
})
);
return { wrapper };
}

View file

@ -440,6 +440,16 @@ const routingTable = function(store) {
}, },
], ],
}, },
{
issPageValue: issPageValues.SERVICE_LOCATION,
maps: [
{
scenario: navigationScenarios.CLICKED_BACK,
destinationIssPageValue: issPageValues.PROVIDER_PREFERENCE,
},
],
},
]; ];
}; };

View file

@ -160,13 +160,6 @@ html {
font-weight: 500; font-weight: 500;
} }
.vehicle-damage,
.vehicle-lookup {
.form-test-error {
margin: 0;
padding: 0 .75rem;
}
}
.form-test-invalid { .form-test-invalid {
&.btn.btn-primary { &.btn.btn-primary {

View file

@ -68,6 +68,9 @@ $orange: #fd7e14;
$teal: #20c997; $teal: #20c997;
$cyan: #0dcaf0; $cyan: #0dcaf0;
// Darker gray
$darker-gray: #525656;
// scss-docs-start colors-map // scss-docs-start colors-map
$colors: ( $colors: (
"blue": $blue, "blue": $blue,
@ -83,6 +86,7 @@ $colors: (
"white": $white, "white": $white,
"gray": $gray, "gray": $gray,
"gray-dark": $gray-500, "gray-dark": $gray-500,
"darker-gray":$darker-gray,
); );
// scss-docs-start theme-color-variables // scss-docs-start theme-color-variables