diff --git a/src/layouts/component-test/component-test.vue b/src/layouts/component-test/component-test.vue
index 6c3af4720..a94d6b321 100644
--- a/src/layouts/component-test/component-test.vue
+++ b/src/layouts/component-test/component-test.vue
@@ -60,8 +60,9 @@
buttonImage="windshield-damage.svg"
buttonLabel="Windshield"
altText=""
- buttonID="Damage Location"
+ buttonID="Damage Location Checkbox"
groupID="checkbox-demo-1"
+ buttonLabelSubCopy="Description"
/>
@@ -72,11 +73,30 @@
+
+
Horizontal as Checkbox
+
diff --git a/src/styles/ux-variables.scss b/src/styles/ux-variables.scss
index 285b0c037..83dadd34a 100644
--- a/src/styles/ux-variables.scss
+++ b/src/styles/ux-variables.scss
@@ -115,6 +115,12 @@ $font-family-base: $font-family-sans-serif;
$font-family-code: $font-family-monospace;
$font-size-base: 1rem; // Assumes the browser default, typically `16px`
+//Custom Font size (extra small)
+$font-size-xsm: $font-size-base * .75;
+$font-sizes: (
+ 7: $font-size-xsm
+);
+
//Font weight
$font-weight-lighter: lighter;
$font-weight-light: 300;
diff --git a/src/ux-components/list-card/list-card.vue b/src/ux-components/list-card/list-card.vue
index 806efffe5..f39ab2a83 100644
--- a/src/ux-components/list-card/list-card.vue
+++ b/src/ux-components/list-card/list-card.vue
@@ -2,15 +2,27 @@
-
+
+
+
+
+
@@ -24,7 +36,10 @@ export default {
altText: String,//Leave empty. Screen readers read the buttonLabel text. If alt has content, it will repeat unnecessarily.
buttonID: String,
groupName: String,
- isMultiSelect: Boolean
+ isMultiSelect: Boolean,
+ isRadio: Boolean,
+ isHorizontal: Boolean,
+ buttonLabelSubCopy: String
}
};
@@ -36,9 +51,8 @@ export default {
border: 1px solid $red;
}
img {
- height: 46px;
- width: auto;
- order: 1;
+ height: auto;
+ width: 2.875rem;
margin-bottom: 3rem;
}
&:hover {
@@ -73,7 +87,7 @@ export default {
margin: 0 auto;
width: 1rem;
height: 1rem;
- margin: 4rem 0 0 0;
+ margin: 3rem 0 0 0;
background: white;
border: 1px solid $gray-500;
border-radius: 2px;
@@ -85,7 +99,7 @@ export default {
&:checked + label::after {
content: '';
position: absolute;
- margin: 4.2rem 0 0 0;
+ margin: 3.2rem 0 0 0;
border-left: 2px solid $white;
border-bottom: 2px solid $white;
height: 6px;
@@ -110,12 +124,28 @@ export default {
}
+ label {
img {
- height: 46px;
- width: auto;
- order: 1;
margin-bottom: 1rem;
}
}
}
+ &.horizontal {
+ img {
+ margin-bottom: 0;
+ }
+ input[type='checkbox'],
+ input[type="radio"] {
+ + label::before {
+ content: "";
+ position: relative;
+ margin: 0 .5rem 0 0;
+ order: 1;
+ }
+ &:checked + label::after {
+ content: '';
+ margin: -0.25rem 0 0 0;
+ left: .875rem;
+ }
+ }
+ }
}