Merge pull request #804 from Safelite/defect/CSR-927
CSR-927 Fix address-lookup error styling
This commit is contained in:
commit
bd25dc8fdd
2 changed files with 10 additions and 13 deletions
|
|
@ -1,7 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div class="dropdown-question" :class="errorMessage || hasError ? 'has-error' : ''">
|
||||||
class="dropdown-question"
|
|
||||||
:class="(errors && errors.length) || hasError ? 'has-error' : ''">
|
|
||||||
<label
|
<label
|
||||||
:for="inputId"
|
:for="inputId"
|
||||||
:aria-label="questionText"
|
:aria-label="questionText"
|
||||||
|
|
@ -43,6 +41,7 @@ export default {
|
||||||
disableAutoFill: Boolean,
|
disableAutoFill: Boolean,
|
||||||
validationRules: String,
|
validationRules: String,
|
||||||
cmsWidgetName: String,
|
cmsWidgetName: String,
|
||||||
|
hasError: Boolean,
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const propsClone = Object.assign({}, props);
|
const propsClone = Object.assign({}, props);
|
||||||
|
|
|
||||||
|
|
@ -75,23 +75,21 @@ html {
|
||||||
}
|
}
|
||||||
&.textbox-question,
|
&.textbox-question,
|
||||||
&.dropdown-question {
|
&.dropdown-question {
|
||||||
input:hover {
|
|
||||||
box-shadow: 0px 0px 0px 4px $red-200;
|
|
||||||
border-radius: 0.5rem;
|
|
||||||
border: 1px solid $red;
|
|
||||||
}
|
|
||||||
input:focus {
|
|
||||||
box-shadow: 0 0 0 2.5px $red;
|
|
||||||
}
|
|
||||||
p {
|
p {
|
||||||
color: $red;
|
color: $red;
|
||||||
}
|
}
|
||||||
input,
|
input,
|
||||||
select {
|
select {
|
||||||
border: 1px solid transparent;
|
border: 1px solid $red;
|
||||||
box-shadow: 0 0 0 1px $red;
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
|
box-shadow: 0 0 0 2.5px $red;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
box-shadow: 0px 0px 0px 4px $red-200;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
border: 1px solid $red;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
select {
|
select {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue