summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-06-26 14:46:36 +0200
committerVolpeon <git@volpeon.ink>2024-06-26 14:46:36 +0200
commit71af9d144c4dfc27c8824aec4d945897289ed440 (patch)
treed5864d85af0738a472bbb068f6b39fc4ca7eef6d /tpl/objects
parentPill version for action button (diff)
downloadiro-design-71af9d144c4dfc27c8824aec4d945897289ed440.tar.gz
iro-design-71af9d144c4dfc27c8824aec4d945897289ed440.tar.bz2
iro-design-71af9d144c4dfc27c8824aec4d945897289ed440.zip
Add static themes to action button
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/action-button.pug3
-rw-r--r--tpl/objects/button.pug1
2 files changed, 4 insertions, 0 deletions
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
10 'o-action-button--icon': !!attributes.icon && !block, 10 'o-action-button--icon': !!attributes.icon && !block,
11 'is-selected': attributes.selected 11 'is-selected': attributes.selected
12 } 12 }
13 if (attributes.theme) {
14 classes['o-action-button--' + attributes.theme] = true
15 }
13 if (attributes.size) { 16 if (attributes.size) {
14 classes['o-action-button--' + attributes.size] = true 17 classes['o-action-button--' + attributes.size] = true
15 } 18 }
diff --git a/tpl/objects/button.pug b/tpl/objects/button.pug
index 61ba0b6..b5fb8da 100644
--- a/tpl/objects/button.pug
+++ b/tpl/objects/button.pug
@@ -3,6 +3,7 @@ mixin a-button
3 let classes = { 3 let classes = {
4 'o-button': true, 4 'o-button': true,
5 'o-button--block': attributes.block, 5 'o-button--block': attributes.block,
6 'o-button--primary': attributes.primary,
6 'o-button--outline': attributes.outline, 7 'o-button--outline': attributes.outline,
7 'o-button--round': !!attributes.icon 8 'o-button--round': !!attributes.icon
8 } 9 }