Styling fix to error state on vehicle-damage

This commit is contained in:
Kroell 2022-12-19 15:43:59 -05:00
parent 369df5b8b6
commit 8627da273f
3 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,7 @@
<template> <template>
<label <label
:class="[buttonWrapperClasses, { 'has-error': errors.length > 0 }]" :class="[buttonWrapperClasses, { 'has-error': errors.length > 0 &&!suppressError,
selected: isChecked }]"
:for="buttonId" :for="buttonId"
@focusin="handleFocus" @focusin="handleFocus"
@focusout="handleBlur" @focusout="handleBlur"

View file

@ -34,4 +34,5 @@ export const inputButtonProps = {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
suppressError: Boolean,
}; };

View file

@ -51,6 +51,7 @@
:additionalButtonStyling="additionalButtonStyling" :additionalButtonStyling="additionalButtonStyling"
:lastValuePushedToGa="lastValuePushedToGa" :lastValuePushedToGa="lastValuePushedToGa"
:setLastValuePushedToGa="setLastValuePushedToGa" :setLastValuePushedToGa="setLastValuePushedToGa"
:suppressError="suppressError"
v-model="selectedValues" /> v-model="selectedValues" />
<!-- For nested questions --> <!-- For nested questions -->
<transition name="fade" mode="out-in"> <transition name="fade" mode="out-in">