WIP - style updates.
This commit is contained in:
parent
16c0437b9e
commit
ffd9a42738
2 changed files with 6 additions and 2 deletions
|
|
@ -14,6 +14,10 @@
|
||||||
background-color: $blue-100;
|
background-color: $blue-100;
|
||||||
border: 1px solid $blue-600;
|
border: 1px solid $blue-600;
|
||||||
}
|
}
|
||||||
|
&.invalid + label {
|
||||||
|
background-color: $white;
|
||||||
|
border: 1px solid $red-500;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
label {
|
label {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="col-4 mb-3 d-flex radio-card">
|
<div class="col-4 mb-3 d-flex radio-card">
|
||||||
<input type="radio" v-bind:id="radioID" v-bind:name="groupName" :value="radioLabel" v-model="picked" v-bind:tabindex="tabIndex"/>
|
<input type="radio" v-bind:class="className" v-bind:id="radioID" v-bind:name="groupName" :value="radioLabel" v-model="picked" v-bind:tabindex="tabIndex"/>
|
||||||
<label v-bind:for="radioID">
|
<label v-bind:for="radioID">
|
||||||
<img class="px-1 pt-3 pb-1 mt-auto" v-bind:src="require(`@/assets/img/icons/${radioImage}`)" v-bind:alt="altText"/>
|
<img class="px-1 pt-3 pb-1 mt-auto" v-bind:src="require(`@/assets/img/icons/${radioImage}`)" v-bind:alt="altText"/>
|
||||||
<span class="mt-auto">{{radioLabel}}</span>
|
<span class="mt-auto">{{radioLabel}}</span>
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'radioCard',
|
name: 'radioCard',
|
||||||
props: ['groupName','radioLabel','radioImage','altText','radioID','tabIndex'],
|
props: ['groupName','radioLabel','radioImage','altText','radioID','tabIndex','className'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
picked: "picked"
|
picked: "picked"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue