diff --git a/src/layouts/component-test/component-test.vue b/src/layouts/component-test/component-test.vue index e0ef3ecca..f8871f161 100644 --- a/src/layouts/component-test/component-test.vue +++ b/src/layouts/component-test/component-test.vue @@ -53,14 +53,32 @@
- List Card Demo + Functioning as Checkbox +
+
+
+
+
+
Checkbox No Description
+
+ Checkbox no Description +
@@ -69,13 +87,118 @@
Functioning as Radio Button
- List Card Demo + Functioning as Radio Button +
+
+
+
+
+
Radio Button no Description
+
+ Radio Button no Description + +
+
+
+
+
+
Horizontal as Checkbox
+
+ Horizontal Checkbox + +
+
+
+
+
+
Checkbox no Description
+
+ Checkbox no Description + +
+
+
+
+
+
Horizontal as Radio Button
+
+ Horizontal Radio Button + +
+
+
+
+
+
Radio Button no Description
+
+ Radio Button no Description + +
+
+
+
+
+
With error
+
+ Radio button with error state +
@@ -104,6 +227,8 @@ loaderPosition="right" sizeInRem="1" screenReaderOnlyText="(opens new window)" + hasError + errorMessage="Error" /> {{buttonLabelSubCopy}} {{screenReaderOnlyText}} -

{{errorMessage}}

@@ -17,7 +16,6 @@ {{screenReaderOnlyText}} -

{{errorMessage}}

@@ -40,7 +38,6 @@ export default { }, data() { return { - isError: false, isLoaderDisplayed: false, }; }, diff --git a/src/ux-components/list-card/list-card.vue b/src/ux-components/list-card/list-card.vue index 806efffe5..71bf0a83e 100644 --- a/src/ux-components/list-card/list-card.vue +++ b/src/ux-components/list-card/list-card.vue @@ -1,16 +1,39 @@ @@ -19,26 +42,35 @@ export default { name: "listCard", props: { - buttonImage: String, - buttonLabel: String, + //Must choose one of the following four options + isMultiSelect: Boolean,//Defines use as checkbox + isRadio: Boolean,//Defines use as radio button + isMultiSelectHorizontal: Boolean,//Defines use as horizontal checkbox + isRadioHorizontal: Boolean,//Defines use as horizontal radio button + //end must choose + buttonImage: String,//Optional: File name of image + buttonLabel: String,//Required: Label text altText: String,//Leave empty. Screen readers read the buttonLabel text. If alt has content, it will repeat unnecessarily. - buttonID: String, - groupName: String, - isMultiSelect: Boolean + buttonID: String,//Required: Unique + groupName: String,//Rquired: Unique + buttonLabelSubCopy: String,//Optional: sub text + hasError: Boolean//Used to show error state } };