Merge pull request #804 from Safelite/defect/CSR-927

CSR-927 Fix address-lookup error styling
This commit is contained in:
katieoh-safelite 2022-11-04 12:59:30 -04:00 committed by GitHub
commit bd25dc8fdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 13 deletions

View file

@ -1,7 +1,5 @@
<template>
<div
class="dropdown-question"
:class="(errors && errors.length) || hasError ? 'has-error' : ''">
<div class="dropdown-question" :class="errorMessage || hasError ? 'has-error' : ''">
<label
:for="inputId"
:aria-label="questionText"
@ -43,6 +41,7 @@ export default {
disableAutoFill: Boolean,
validationRules: String,
cmsWidgetName: String,
hasError: Boolean,
},
setup(props) {
const propsClone = Object.assign({}, props);

View file

@ -75,23 +75,21 @@ html {
}
&.textbox-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 {
color: $red;
}
input,
select {
border: 1px solid transparent;
box-shadow: 0 0 0 1px $red;
border: 1px solid $red;
&:focus {
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 {