Merge remote-tracking branch 'origin/feature/CSR-92' into feature/CSR-92

This commit is contained in:
Max 2022-04-08 09:27:42 -04:00
commit 279b7ef534
7 changed files with 12 additions and 8 deletions

View file

@ -160,6 +160,7 @@ export default {
.overflow-scroll { .overflow-scroll {
// Height will be determined by overall height of content above list // Height will be determined by overall height of content above list
height: calc(100% - 300px); height: calc(100% - 300px);
overflow-x: hidden !important;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
} }

View file

@ -126,5 +126,8 @@ export default {
justify-content: flex-start; justify-content: flex-start;
} }
} }
& > .container-fluid {
overflow-x: visible; // needed to fix hidden footer on some iphones
}
} }
</style> </style>

View file

@ -277,7 +277,8 @@ export default {
navigateForward(partsData){ navigateForward(partsData){
// CSR-98 TEMP // CSR-98 TEMP
if (store.getters.vehicle.year == 2010) { const vehicleYearsToShowHeritageFunnel = [ "2001", "2002", "2010" ];
if (vehicleYearsToShowHeritageFunnel.includes(store.getters.vehicle.year)) {
navigateToHeritageFunnel(); navigateToHeritageFunnel();
return; return;
} }

View file

@ -99,8 +99,7 @@ export default ({
}, },
methods: { methods: {
initializeComponent( initializeComponent(windshieldAvailableReplacementOptions){
windshieldAvailableReplacementOptions){
this.windshieldAvailableReplacementOptions = windshieldAvailableReplacementOptions; this.windshieldAvailableReplacementOptions = windshieldAvailableReplacementOptions;
this.$refs.replaceOptionsQuestion.initializeComponent(windshieldAvailableReplacementOptions); this.$refs.replaceOptionsQuestion.initializeComponent(windshieldAvailableReplacementOptions);
}, },

View file

@ -23,7 +23,7 @@ body {
} }
.container, .container,
.container-fluid { .container-fluid {
overflow-x: hidden !important; overflow-x: hidden;
} }
.sr-only { .sr-only {

View file

@ -145,7 +145,7 @@ describe("list-card.vue", () => {
// Assert // Assert
const label = wrapper.find("label"); const label = wrapper.find("label");
expect(label.classes()).toEqual(["d-flex", "w-100", "align-items-center", "px-2", "h-100", "flex-row", "py-r", "ps-3", "pe-4"]); expect(label.classes()).toEqual(["d-flex", "w-100", "align-items-center", "px-2", "h-100", "flex-row", "py-2", "ps-4", "pe-4"]);
}); });
it("Should return flex row classes if isWide is true and checkboxTop if buttonLabelSubCopy is true", async () => { it("Should return flex row classes if isWide is true and checkboxTop if buttonLabelSubCopy is true", async () => {
@ -167,7 +167,7 @@ describe("list-card.vue", () => {
// Assert // Assert
const label = wrapper.find("label"); const label = wrapper.find("label");
expect(label.classes()).toEqual(["d-flex", "w-100", "align-items-center", "px-2", "h-100", "flex-row", "py-r", "ps-3", "pe-4", "checkboxTop"]); expect(label.classes()).toEqual(["d-flex", "w-100", "align-items-center", "px-2", "h-100", "flex-row", "py-2", "ps-4", "pe-4", "checkboxTop"]);
}); });
it("Should return flex column classes if isWide is false", async () => { it("Should return flex column classes if isWide is false", async () => {

View file

@ -107,7 +107,7 @@ export default {
computed: { computed: {
getLabelClasses() { getLabelClasses() {
if (this.isWide) { if (this.isWide) {
let classes = "flex-row py-r ps-3 pe-4"; let classes = "flex-row py-2 ps-4 pe-4";
if (this.buttonLabelSubCopy) { if (this.buttonLabelSubCopy) {
classes += " checkboxTop"; classes += " checkboxTop";
} }
@ -173,7 +173,7 @@ export default {
// svg's should be constructed on the same canvas size/viewbox to ensure they occupy the same space in the DOM. This will allow easy/proper alignment of elements. See exisitng svg's for examples. // svg's should be constructed on the same canvas size/viewbox to ensure they occupy the same space in the DOM. This will allow easy/proper alignment of elements. See exisitng svg's for examples.
height: auto; height: auto;
width: 6.5rem; width: 6.5rem;
margin-bottom: 3rem; margin-bottom: 2.2rem;
max-width: 100%; max-width: 100%;
} }