From a8bf508fa2474d07c6c9a4f4c90bc42246896df1 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 10 Feb 2022 06:25:12 +0100 Subject: Update --- tpl/objects/menu.pug | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tpl/objects') diff --git a/tpl/objects/menu.pug b/tpl/objects/menu.pug index 7c9c07e..97a571d 100644 --- a/tpl/objects/menu.pug +++ b/tpl/objects/menu.pug @@ -1,12 +1,19 @@ include icon.pug include status-indicator.pug +include action-button.pug mixin menu .o-menu block mixin menu-item - button.o-menu__item(disabled=attributes.disabled) + - + let classes = { + 'o-menu__item': true, + 'is-selected': attributes.selected, + } + + button(class=classes, disabled=attributes.disabled) .l-card.l-card--flush if attributes.icon .l-card__block.o-menu__icon-slot @@ -14,7 +21,7 @@ mixin menu-item +status-indicator(attributes.icon)(class='o-menu__icon') else +icon(attributes.icon)(class='o-menu__icon') - .l-card__block.l-card__block--main + .l-card__block.l-card__block--main&attributes({ class: attributes.contentClass }) block if attributes.postIcon .l-card__block.o-menu__icon-slot -- cgit v1.2.3-70-g09d2