diff options
| author | Volpeon <git@volpeon.ink> | 2024-06-26 14:46:36 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2024-06-26 14:46:36 +0200 |
| commit | 71af9d144c4dfc27c8824aec4d945897289ed440 (patch) | |
| tree | d5864d85af0738a472bbb068f6b39fc4ca7eef6d /tpl/objects/action-button.pug | |
| parent | Pill version for action button (diff) | |
| download | iro-design-71af9d144c4dfc27c8824aec4d945897289ed440.tar.gz iro-design-71af9d144c4dfc27c8824aec4d945897289ed440.tar.bz2 iro-design-71af9d144c4dfc27c8824aec4d945897289ed440.zip | |
Add static themes to action button
Diffstat (limited to 'tpl/objects/action-button.pug')
| -rw-r--r-- | tpl/objects/action-button.pug | 3 |
1 files changed, 3 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 | } |
