From 4e87fb46f2958ae28bdcfbc469118f14297b4d26 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 26 Jun 2024 09:19:02 +0200 Subject: Pill version for action button --- tpl/objects/action-button.pug | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tpl/objects') diff --git a/tpl/objects/action-button.pug b/tpl/objects/action-button.pug index c0d7582..976a646 100644 --- a/tpl/objects/action-button.pug +++ b/tpl/objects/action-button.pug @@ -6,9 +6,13 @@ mixin action-button 'o-action-button': true, 'u-d-block': attributes.block, 'o-action-button--quiet': attributes.quiet, - 'o-action-button--round': attributes.round, + 'o-action-button--pill': attributes.pill, + 'o-action-button--icon': !!attributes.icon && !block, 'is-selected': attributes.selected } + if (attributes.size) { + classes['o-action-button--' + attributes.size] = true + } if (attributes.class) { classes[attributes.class] = true; } -- cgit v1.2.3-54-g00ecf