Merge pull request #219 from Safelite/CSR-262-validation-styling-updates
CSR-262 validation styling updates.
This commit is contained in:
commit
b72e9b8a58
5 changed files with 13 additions and 9 deletions
|
|
@ -37,7 +37,7 @@
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
<div class="row px-3 my-6 form-test-error" v-if="!suppressError">
|
<div class="row mt-2 form-test-error" v-if="!suppressError">
|
||||||
<error-message :name="groupName"></error-message>
|
<error-message :name="groupName"></error-message>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@
|
||||||
<div class="row my-4">
|
<div class="row my-4">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h4 class="m-0 p-2 bg-light rounded">Radio Button</h4>
|
<h4 class="m-0 p-2 bg-light rounded">Radio Button</h4>
|
||||||
<p class="m-0">Sample radio button group</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
@invalid-submit="onInvalidSubmit"
|
@invalid-submit="onInvalidSubmit"
|
||||||
ref="theForm"
|
ref="theForm"
|
||||||
v-slot="{ values, meta, errors }"
|
v-slot="{ values, meta, errors }"
|
||||||
>
|
>
|
||||||
<damageLocationQuestion
|
<damageLocationQuestion
|
||||||
ref="damageLocation"
|
ref="damageLocation"
|
||||||
v-model="selectedDamageLocations"
|
v-model="selectedDamageLocations"
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
:suppressError="errors.windshieldDamageTypeQuestion && errors.windshieldDamageTypeQuestion.startsWith('checkForRepairAndReplace')"
|
:suppressError="errors.windshieldDamageTypeQuestion && errors.windshieldDamageTypeQuestion.startsWith('checkForRepairAndReplace')"
|
||||||
/>
|
/>
|
||||||
<alert
|
<alert
|
||||||
|
class="my-3"
|
||||||
v-if="errors.windshieldDamageTypeQuestion && errors.windshieldDamageTypeQuestion.startsWith('checkForRepairAndReplace')"
|
v-if="errors.windshieldDamageTypeQuestion && errors.windshieldDamageTypeQuestion.startsWith('checkForRepairAndReplace')"
|
||||||
alertClass="alert-danger"
|
alertClass="alert-danger"
|
||||||
alertHeadline="You'll need to schedule separate appointments"
|
alertHeadline="You'll need to schedule separate appointments"
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,22 @@
|
||||||
.has-error {
|
.has-error {
|
||||||
&.list-button,
|
&.list-button,
|
||||||
&.list-card,
|
&.list-card {
|
||||||
&.list-button-horizontal {
|
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
box-shadow: 0 0 0 1px $red;
|
|
||||||
color: $red;
|
color: $red;
|
||||||
label {
|
label {
|
||||||
box-shadow: 0 0 0 2.5px $red;
|
border: 1px solid $red;
|
||||||
border-radius: .5rem;
|
border-radius: .5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
input[type=checkbox]:focus + label,
|
input[type=checkbox]:focus + label,
|
||||||
input[type=radio]:checked + label {
|
input[type=radio]:checked + label {
|
||||||
box-shadow: 0 0 0 2.5px transparent;
|
box-shadow: 0 0 0 2.5px transparent !important;
|
||||||
|
}
|
||||||
|
&.list-button-horizontal {
|
||||||
|
color: $red;
|
||||||
|
label {
|
||||||
|
border: 1px solid $red;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<button
|
<button
|
||||||
:aria-disabled="isDisabled"
|
:aria-disabled="isDisabled"
|
||||||
class="btn d-flex align-items-center py-3 px-2 delay"
|
class="btn d-flex align-items-center py-3 px-4 delay"
|
||||||
:class="[isPrimary ? 'btn-primary' : 'btn-secondary',isFloat ? 'float-end' : '', isLoaderDisplayed ? 'has-loader' : '']"
|
:class="[isPrimary ? 'btn-primary' : 'btn-secondary',isFloat ? 'float-end' : '', isLoaderDisplayed ? 'has-loader' : '']"
|
||||||
@click="clicked()"
|
@click="clicked()"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue