From 943ee062fe2c0344165e28f4d612176878159133 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 21 Jul 2025 16:03:52 +0200 Subject: Consolidating button, action-button and badge; change design to have some 3D components --- tpl/objects/action-button.pug | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'tpl/objects') diff --git a/tpl/objects/action-button.pug b/tpl/objects/action-button.pug index e9b6fe3..0ab084e 100644 --- a/tpl/objects/action-button.pug +++ b/tpl/objects/action-button.pug @@ -3,12 +3,14 @@ include icon.pug mixin action-button - let classes = { - 'o-action-button': true, - 'u-d-block': attributes.block, - 'o-action-button--quiet': attributes.quiet, - 'o-action-button--pill': attributes.pill, - 'o-action-button--icon': !!attributes.icon && !block, - 'is-selected': attributes.selected + '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--badge': attributes.badge, + 'o-action-button--icon': !!attributes.icon && !block, + 'is-selected': attributes.selected, } if (attributes.theme) { classes['o-action-button--' + attributes.theme] = true -- cgit v1.2.3-70-g09d2