summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/list-group.pug13
-rw-r--r--tpl/objects/text-field.pug3
2 files changed, 14 insertions, 2 deletions
diff --git a/tpl/objects/list-group.pug b/tpl/objects/list-group.pug
new file mode 100644
index 0000000..36be264
--- /dev/null
+++ b/tpl/objects/list-group.pug
@@ -0,0 +1,13 @@
1mixin list-group
2 .o-list-group
3 block
4
5mixin list-group-item
6 -
7 let classes = {
8 'o-list-group__item': true,
9 'o-list-group__item--action': attributes.action,
10 }
11
12 div(class=classes)
13 block
diff --git a/tpl/objects/text-field.pug b/tpl/objects/text-field.pug
index 2e9827b..cbdb8c4 100644
--- a/tpl/objects/text-field.pug
+++ b/tpl/objects/text-field.pug
@@ -16,8 +16,7 @@ mixin text-field
16 'is-disabled': attributes.disabled, 16 'is-disabled': attributes.disabled,
17 'l-card': !!block, 17 'l-card': !!block,
18 'l-card--flush': !!block, 18 'l-card--flush': !!block,
19 'l-card--gapless': !!block, 19 'l-card--gapless': !!block
20 'u-p-xs': !!block
21 } 20 }
22 21
23 div(class=classes aria-disabled=attributes.disabled && String(attributes.disabled)) 22 div(class=classes aria-disabled=attributes.disabled && String(attributes.disabled))