diff options
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/objects/action-button.pug | 2 | ||||
-rw-r--r-- | tpl/objects/icon.pug | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tpl/objects/action-button.pug b/tpl/objects/action-button.pug index d752fa6..0467bd7 100644 --- a/tpl/objects/action-button.pug +++ b/tpl/objects/action-button.pug | |||
@@ -17,7 +17,7 @@ mixin action-button | |||
17 | 17 | ||
18 | a(class=classes href=href) | 18 | a(class=classes href=href) |
19 | if attributes.icon | 19 | if attributes.icon |
20 | +icon(attributes.icon) | 20 | +icon(attributes.icon)(block=!block) |
21 | = ' ' | 21 | = ' ' |
22 | if block | 22 | if block |
23 | span.o-action-button__label | 23 | span.o-action-button__label |
diff --git a/tpl/objects/icon.pug b/tpl/objects/icon.pug index 494abf6..1ed6052 100644 --- a/tpl/objects/icon.pug +++ b/tpl/objects/icon.pug | |||
@@ -2,7 +2,8 @@ mixin icon(id) | |||
2 | - | 2 | - |
3 | let href = 'icons.svg#' + id | 3 | let href = 'icons.svg#' + id |
4 | let classes = { | 4 | let classes = { |
5 | 'o-icon': true | 5 | 'o-icon': true, |
6 | 'o-icon--block': attributes.block, | ||
6 | } | 7 | } |
7 | if (attributes.class) { | 8 | if (attributes.class) { |
8 | classes[attributes.class] = true; | 9 | classes[attributes.class] = true; |