From 8c4acea85943a34e62299f419e93a8f3ce142bb9 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 12 Mar 2022 09:53:20 +0100 Subject: Added list group --- tpl/objects/list-group.pug | 13 +++++++++++++ tpl/objects/text-field.pug | 3 +-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 tpl/objects/list-group.pug (limited to 'tpl/objects') 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 @@ +mixin list-group + .o-list-group + block + +mixin list-group-item + - + let classes = { + 'o-list-group__item': true, + 'o-list-group__item--action': attributes.action, + } + + div(class=classes) + 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 'is-disabled': attributes.disabled, 'l-card': !!block, 'l-card--flush': !!block, - 'l-card--gapless': !!block, - 'u-p-xs': !!block + 'l-card--gapless': !!block } div(class=classes aria-disabled=attributes.disabled && String(attributes.disabled)) -- cgit v1.2.3-70-g09d2