INSR-8434: Fix defects seen on contact-details

This commit is contained in:
Alex Humphries 2026-02-12 17:58:35 -05:00
parent c415f10ffa
commit 053cd44cbe
5 changed files with 34 additions and 10 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

@ -394,6 +394,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

@ -57,9 +57,9 @@
ref="stateQuestion" ref="stateQuestion"
v-model="state" v-model="state"
inputId="state" inputId="state"
class="form-group" class="form-group state-dropdown"
:cmsWidgetName="widget.stateQuestion" :cmsWidgetName="widget.stateQuestion"
:options="states" :options="getStates"
isDisabled /> isDisabled />
<textboxQuestion <textboxQuestion
ref="zipCodeQuestion" ref="zipCodeQuestion"
@ -219,7 +219,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) {
@ -301,6 +308,11 @@ export default {
.form-group { .form-group {
margin-bottom: 1.25rem; margin-bottom: 1.25rem;
} }
.state-dropdown {
:deep(option) {
text-transform: uppercase;
}
}
.same-address-checkbox { .same-address-checkbox {
:deep(.form-check-input) { :deep(.form-check-input) {
&:checked + label p, &:checked + label p,

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">
@ -209,7 +214,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: {
@ -237,6 +242,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();
@ -269,6 +277,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;