From fe18832c84c2e144d44e3bd023bc958576156e1e Mon Sep 17 00:00:00 2001 From: Pez Cuckow Date: Sat, 12 Nov 2022 09:51:13 +0200 Subject: [PATCH 1/2] Add disabled attr to list-items For use in table menus --- docs/data/utilities.docs.json | 6 +++++- src/components/ListItem.vue | 11 ++++++++++- src/stylesheets/ff-components.scss | 7 +++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/docs/data/utilities.docs.json b/docs/data/utilities.docs.json index 52d4048..4d7d35c 100644 --- a/docs/data/utilities.docs.json +++ b/docs/data/utilities.docs.json @@ -1,7 +1,7 @@ { "name": "Utilities", "id": "utilities", - "description": "A collection of smaller components that can be used in conjuction with, or as child elements, of any of the other components in this library.", + "description": "A collection of smaller components that can be used in conjunction with, or as child elements, of any of the other components in this library.", "components": [{ "name": "ff-check", "examples": [{ @@ -23,6 +23,10 @@ "key": "label", "default": "", "description": "A string label to display in the list item." + }, { + "key": "disabled", + "default": "false", + "description": "Should this list item visually disabled" }] }] } \ No newline at end of file diff --git a/src/components/ListItem.vue b/src/components/ListItem.vue index ca13eb7..4629bad 100644 --- a/src/components/ListItem.vue +++ b/src/components/ListItem.vue @@ -1,5 +1,5 @@