From 5c878876d3bdd2c7cd094871fa0644f3310bcec8 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 23 Jul 2025 08:34:23 +0200 Subject: Commit merge of button and badge into action-button (and rename it to button) --- tpl/objects/action-button.pug | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 tpl/objects/action-button.pug (limited to 'tpl/objects/action-button.pug') diff --git a/tpl/objects/action-button.pug b/tpl/objects/action-button.pug deleted file mode 100644 index 0e77e58..0000000 --- a/tpl/objects/action-button.pug +++ /dev/null @@ -1,36 +0,0 @@ -include icon.pug - -mixin action-button - - - let classes = { - 'o-action-button': true, - 'u-d-block': attributes.block, - 'o-action-button--secondary': attributes.secondary, - 'o-action-button--quiet': attributes.quiet, - 'o-action-button--pill': attributes.pill, - 'o-action-button--static': attributes.static, - 'o-action-button--icon': !!attributes.icon && !block, - 'is-selected': attributes.selected, - } - if (attributes.theme) { - classes['o-action-button--' + attributes.theme] = true - } - if (attributes.size) { - classes['o-action-button--' + attributes.size] = true - } - if (attributes.class) { - classes[attributes.class] = true; - } - - let href = attributes.disabled ? null : '#'; - - a(class=classes href=href) - if attributes.icon - +icon(attributes.icon) - = ' ' - if block - span.o-action-button__label - block - if attributes.postIcon - = ' ' - +icon(attributes.postIcon) -- cgit v1.2.3-70-g09d2