summaryrefslogtreecommitdiffstats
path: root/tpl/objects/action-button.pug
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/objects/action-button.pug')
-rw-r--r--tpl/objects/action-button.pug14
1 files changed, 8 insertions, 6 deletions
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
3mixin action-button 3mixin action-button
4 - 4 -
5 let classes = { 5 let classes = {
6 'o-action-button': true, 6 'o-action-button': true,
7 'u-d-block': attributes.block, 7 'u-d-block': attributes.block,
8 'o-action-button--quiet': attributes.quiet, 8 'o-action-button--secondary': attributes.secondary,
9 'o-action-button--pill': attributes.pill, 9 'o-action-button--quiet': attributes.quiet,
10 'o-action-button--icon': !!attributes.icon && !block, 10 'o-action-button--pill': attributes.pill,
11 'is-selected': attributes.selected 11 'o-action-button--badge': attributes.badge,
12 'o-action-button--icon': !!attributes.icon && !block,
13 'is-selected': attributes.selected,
12 } 14 }
13 if (attributes.theme) { 15 if (attributes.theme) {
14 classes['o-action-button--' + attributes.theme] = true 16 classes['o-action-button--' + attributes.theme] = true