diff --git a/src/layouts/component-test/component-test.vue b/src/layouts/component-test/component-test.vue index 3ca8a3eda..6c3af4720 100644 --- a/src/layouts/component-test/component-test.vue +++ b/src/layouts/component-test/component-test.vue @@ -56,15 +56,31 @@
List Card Demo
+
+
+
Functioning as Radio Button
+
+ List Card Demo + +
+
+

List Button - Single-Line

diff --git a/src/ux-components/list-card/list-card.vue b/src/ux-components/list-card/list-card.vue index 157c15de3..806efffe5 100644 --- a/src/ux-components/list-card/list-card.vue +++ b/src/ux-components/list-card/list-card.vue @@ -1,11 +1,18 @@ @@ -37,12 +45,11 @@ export default { box-shadow: 0px 0px 0px 6px $blue-100; border: 1px solid transparent; } - input[type='checkbox'] { - position: absolute !important; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(1px, 1px, 1px, 1px); + input[type='checkbox'], + input[type="radio"] { + opacity: 0; + position: fixed; + width: 0; + label { display: block; position: relative; @@ -92,5 +99,23 @@ export default { background: #ddd; } } + input[type="radio"] { + + label::before { + content: ""; + display: none; + } + + label::after { + content: ""; + display: none; + } + + label { + img { + height: 46px; + width: auto; + order: 1; + margin-bottom: 1rem; + } + } + } }