From 732c2bce047de5105e84ca61bebcf05de564917f Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 7 Feb 2022 18:47:29 +0100 Subject: Improved action menu example --- tpl/objects/action-menu.pug | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tpl/objects') diff --git a/tpl/objects/action-menu.pug b/tpl/objects/action-menu.pug index 85f93bf..6ab4e0d 100644 --- a/tpl/objects/action-menu.pug +++ b/tpl/objects/action-menu.pug @@ -17,9 +17,12 @@ mixin action-menu-item .l-card.l-card--flush .l-card__block.o-action-menu__icon-slot if attributes.icon - +icon(attributes.icon) + +icon(attributes.icon)(class='o-action-menu__icon') .l-card__block.l-card__block--main block + .l-card__block.o-action-menu__icon-slot + if attributes.postIcon + +icon(attributes.postIcon)(class='o-action-menu__icon') mixin action-menu-separator .o-action-menu__separator -- cgit v1.2.3-70-g09d2