Merge pull request #1074 from Safelite/feature/humphries/INSR-7752.1

INSR-8434: Fix defects seen on contact-details
This commit is contained in:
AHumphriesSL 2026-02-13 12:25:58 -05:00 committed by GitHub
commit 0f9922e38d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 28 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -156,8 +156,8 @@ export default {
&:disabled, &:disabled,
&.disabled { &.disabled {
background-color: $gray-100; background-color: $gray-100;
color: $gray-500; background-image: url(~@/assets/img/icons/select-disabled.png);
filter: grayscale(100%); cursor: not-allowed;
} }
} }
&.dropdown-compact { &.dropdown-compact {

View file

@ -402,6 +402,7 @@ input::-webkit-date-and-time-value {
&:disabled, &:disabled,
&.disabled { &.disabled {
background-color: $gray-100; background-color: $gray-100;
cursor: not-allowed;
} }
} }
p { p {

View file

@ -59,7 +59,7 @@
inputId="state" inputId="state"
class="form-group" class="form-group"
:cmsWidgetName="widget.stateQuestion" :cmsWidgetName="widget.stateQuestion"
:options="states" :options="getStates"
isDisabled /> isDisabled />
<textboxQuestion <textboxQuestion
ref="zipCodeQuestion" ref="zipCodeQuestion"
@ -218,7 +218,14 @@ export default {
}, },
vehicleProtectedQuestionAnswers() { vehicleProtectedQuestionAnswers() {
return this.getCmsContent(this.widget.vehicleProtectedQuestion, widgetFields.INPUT_QUESTION_WIDGET.ANSWERS) || []; return this.getCmsContent(this.widget.vehicleProtectedQuestion, widgetFields.INPUT_QUESTION_WIDGET.ANSWERS) || [];
} },
getStates() {
return Object.keys(states).reduce((acc, key) => {
// eslint-disable-next-line no-param-reassign
acc[key] = states[key].toUpperCase();
return acc;
}, {});
},
}, },
watch: { watch: {
isSameAsPolicyAddress(newValue) { isSameAsPolicyAddress(newValue) {

View file

@ -7,7 +7,12 @@
alertClass, alertClass,
cssClassNameForCmsWidget, cssClassNameForCmsWidget,
]"> ]">
<div class="alert-header"> <div
class="alert-header"
:class="{
'collapsible-header': isCollapsible
}"
@click="toggleCollapse">
<div class="alert-icon-container"> <div class="alert-icon-container">
<svg <svg
class="alert-icon" class="alert-icon"
@ -35,8 +40,7 @@
<button <button
v-if="isCollapsible" v-if="isCollapsible"
class="btn-collapse" class="btn-collapse"
type="button" type="button">
@click="toggleCollapse">
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="15" width="15"
@ -73,7 +77,8 @@
<div <div
v-show="alertCopy" v-show="alertCopy"
:id="collapseId" :id="collapseId"
class="alert-body show"> class="alert-body collapse"
:class="{ 'show': !startCollapsed }">
<template <template
v-for="paragraph in splitAlertCopyForParagraphTag" v-for="paragraph in splitAlertCopyForParagraphTag"
:key="paragraph"> :key="paragraph">
@ -208,7 +213,7 @@ export default {
mounted() { mounted() {
this.ensureAlertIsInViewPort(); this.ensureAlertIsInViewPort();
if (this.isCollapsible) { if (this.isCollapsible) {
this.collapseElement = Collapse.getOrCreateInstance(document.getElementById(this.collapseId), { toggle: this.startCollapsed }); this.collapseElement = Collapse.getOrCreateInstance(document.getElementById(this.collapseId), { toggle: false });
} }
}, },
methods: { methods: {
@ -236,6 +241,9 @@ export default {
); );
}, },
toggleCollapse() { toggleCollapse() {
if (!this.isCollapsible) {
return;
}
this.collapsed = !this.collapsed; this.collapsed = !this.collapsed;
if (this.collapsed) { if (this.collapsed) {
this.collapseElement.hide(); this.collapseElement.hide();
@ -268,6 +276,9 @@ export default {
padding: .75rem 1rem .75rem 1rem; padding: .75rem 1rem .75rem 1rem;
font-weight: 600; font-weight: 600;
color: $black; color: $black;
&.collapsible-header {
cursor: pointer;
}
} }
.alert-icon-container { .alert-icon-container {
display: flex; display: flex;