INSR-8434: Fix defects seen on contact-details
This commit is contained in:
parent
c415f10ffa
commit
053cd44cbe
5 changed files with 34 additions and 10 deletions
BIN
src/assets/img/icons/select-disabled.png
Normal file
BIN
src/assets/img/icons/select-disabled.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
|
|
@ -156,8 +156,8 @@ export default {
|
|||
&:disabled,
|
||||
&.disabled {
|
||||
background-color: $gray-100;
|
||||
color: $gray-500;
|
||||
filter: grayscale(100%);
|
||||
background-image: url(~@/assets/img/icons/select-disabled.png);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
&.dropdown-compact {
|
||||
|
|
|
|||
|
|
@ -394,6 +394,7 @@ input::-webkit-date-and-time-value {
|
|||
&:disabled,
|
||||
&.disabled {
|
||||
background-color: $gray-100;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
p {
|
||||
|
|
|
|||
|
|
@ -57,9 +57,9 @@
|
|||
ref="stateQuestion"
|
||||
v-model="state"
|
||||
inputId="state"
|
||||
class="form-group"
|
||||
class="form-group state-dropdown"
|
||||
:cmsWidgetName="widget.stateQuestion"
|
||||
:options="states"
|
||||
:options="getStates"
|
||||
isDisabled />
|
||||
<textboxQuestion
|
||||
ref="zipCodeQuestion"
|
||||
|
|
@ -219,7 +219,14 @@ export default {
|
|||
},
|
||||
vehicleProtectedQuestionAnswers() {
|
||||
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: {
|
||||
isSameAsPolicyAddress(newValue) {
|
||||
|
|
@ -301,6 +308,11 @@ export default {
|
|||
.form-group {
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
.state-dropdown {
|
||||
:deep(option) {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
.same-address-checkbox {
|
||||
:deep(.form-check-input) {
|
||||
&:checked + label p,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,12 @@
|
|||
alertClass,
|
||||
cssClassNameForCmsWidget,
|
||||
]">
|
||||
<div class="alert-header">
|
||||
<div
|
||||
class="alert-header"
|
||||
:class="{
|
||||
'collapsible-header': isCollapsible
|
||||
}"
|
||||
@click="toggleCollapse">
|
||||
<div class="alert-icon-container">
|
||||
<svg
|
||||
class="alert-icon"
|
||||
|
|
@ -35,8 +40,7 @@
|
|||
<button
|
||||
v-if="isCollapsible"
|
||||
class="btn-collapse"
|
||||
type="button"
|
||||
@click="toggleCollapse">
|
||||
type="button">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="15"
|
||||
|
|
@ -73,7 +77,8 @@
|
|||
<div
|
||||
v-show="alertCopy"
|
||||
:id="collapseId"
|
||||
class="alert-body show">
|
||||
class="alert-body collapse"
|
||||
:class="{ 'show': !startCollapsed }">
|
||||
<template
|
||||
v-for="paragraph in splitAlertCopyForParagraphTag"
|
||||
:key="paragraph">
|
||||
|
|
@ -209,7 +214,7 @@ export default {
|
|||
mounted() {
|
||||
this.ensureAlertIsInViewPort();
|
||||
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: {
|
||||
|
|
@ -237,6 +242,9 @@ export default {
|
|||
);
|
||||
},
|
||||
toggleCollapse() {
|
||||
if (!this.isCollapsible) {
|
||||
return;
|
||||
}
|
||||
this.collapsed = !this.collapsed;
|
||||
if (this.collapsed) {
|
||||
this.collapseElement.hide();
|
||||
|
|
@ -269,6 +277,9 @@ export default {
|
|||
padding: .75rem 1rem .75rem 1rem;
|
||||
font-weight: 600;
|
||||
color: $black;
|
||||
&.collapsible-header {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.alert-icon-container {
|
||||
display: flex;
|
||||
|
|
|
|||
Loading…
Reference in a new issue