From 71af9d144c4dfc27c8824aec4d945897289ed440 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 26 Jun 2024 14:46:36 +0200 Subject: Add static themes to action button --- tpl/objects/action-button.pug | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tpl/objects/action-button.pug') diff --git a/tpl/objects/action-button.pug b/tpl/objects/action-button.pug index 976a646..c3a9b53 100644 --- a/tpl/objects/action-button.pug +++ b/tpl/objects/action-button.pug @@ -10,6 +10,9 @@ mixin action-button '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 } -- cgit v1.3.1