summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-02-07 19:05:45 +0100
committerVolpeon <git@volpeon.ink>2022-02-07 19:05:45 +0100
commit74ca4fc514605dd8be39e0a5b133534f6740a23e (patch)
treeaea3d9e522996b89dd34d94c97e6b7e30f35e89b /tpl/objects
parentImproved action menu example (diff)
downloadiro-design-74ca4fc514605dd8be39e0a5b133534f6740a23e.tar.gz
iro-design-74ca4fc514605dd8be39e0a5b133534f6740a23e.tar.bz2
iro-design-74ca4fc514605dd8be39e0a5b133534f6740a23e.zip
Improved action menu example
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/action-menu.pug8
1 files changed, 6 insertions, 2 deletions
diff --git a/tpl/objects/action-menu.pug b/tpl/objects/action-menu.pug
index 6ab4e0d..e236b7c 100644
--- a/tpl/objects/action-menu.pug
+++ b/tpl/objects/action-menu.pug
@@ -1,5 +1,6 @@
1include ../objects/action-button.pug 1include action-button.pug
2include icon.pug 2include icon.pug
3include status-indicator.pug
3 4
4mixin action-menu 5mixin action-menu
5 - 6 -
@@ -17,7 +18,10 @@ mixin action-menu-item
17 .l-card.l-card--flush 18 .l-card.l-card--flush
18 .l-card__block.o-action-menu__icon-slot 19 .l-card__block.o-action-menu__icon-slot
19 if attributes.icon 20 if attributes.icon
20 +icon(attributes.icon)(class='o-action-menu__icon') 21 if attributes.iconIsStatus
22 +status-indicator(attributes.icon)(class='o-action-menu__icon')
23 else
24 +icon(attributes.icon)(class='o-action-menu__icon')
21 .l-card__block.l-card__block--main 25 .l-card__block.l-card__block--main
22 block 26 block
23 .l-card__block.o-action-menu__icon-slot 27 .l-card__block.o-action-menu__icon-slot