From db3cd7ea18b65d62af5ef964844a54a9bf4b4e89 Mon Sep 17 00:00:00 2001 From: bmauger Date: Wed, 15 Dec 2021 11:54:46 -0500 Subject: [PATCH 1/5] CSR-186 Add radio/checkbox toggle to existing list-buttons. --- src/layouts/component-test/component-test.vue | 220 +++++++++++++++--- src/styles/common-list-styles.scss | 3 +- .../list-button-horizontal.vue | 27 ++- src/ux-components/list-button/list-button.vue | 24 +- 4 files changed, 232 insertions(+), 42 deletions(-) diff --git a/src/layouts/component-test/component-test.vue b/src/layouts/component-test/component-test.vue index 624469e8a..46be34449 100644 --- a/src/layouts/component-test/component-test.vue +++ b/src/layouts/component-test/component-test.vue @@ -58,20 +58,18 @@

List Button - Single-Line

+
Functioning as Radio Buttons
-
+

Select Vehicle Year

+
+ + +

List Button - Multi-Line

+
Functioning as Radio Buttons
-
+
-

- Select Vehicle Year -

+

Select Vehicle Year

+
+ +
Functioning as Checkboxes
+
+ +

Select Vehicle Year

+ + + +
+

List Button - Multi-Line Centered

+
Functioning as Radio Buttons
-
+
-

- Multi-Line Centered -

+

Multi-Line Centered

+
+ +
Functioning as Checkboxes
+
+ +

Multi-Line Centered

+ + + +
+

List Button Horizontal

+
Functioning as Radio Buttons
-
+

Select Vehicle Year

+
+ +
Functioning as Checkboxes
+
+ +

+ Select Vehicle Year +

+ + + +
+

Text Link

diff --git a/src/styles/common-list-styles.scss b/src/styles/common-list-styles.scss index 4eb174a02..0d74a4258 100644 --- a/src/styles/common-list-styles.scss +++ b/src/styles/common-list-styles.scss @@ -1,6 +1,7 @@ .list-group { &.list-button { - input[type="radio"] { + input[type="radio"], + input[type="checkbox"] { opacity: 0; position: fixed; width: 0; diff --git a/src/ux-components/list-button-horizontal/list-button-horizontal.vue b/src/ux-components/list-button-horizontal/list-button-horizontal.vue index 315a18995..7b1bc292c 100644 --- a/src/ux-components/list-button-horizontal/list-button-horizontal.vue +++ b/src/ux-components/list-button-horizontal/list-button-horizontal.vue @@ -1,16 +1,25 @@