diff options
Diffstat (limited to 'tpl/objects')
-rw-r--r-- | tpl/objects/action-button.pug | 3 | ||||
-rw-r--r-- | tpl/objects/button.pug | 1 |
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 | } |