From 5e2696d9ae35b37a9f7d0fe1c52b93fb84570464 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 25 Mar 2022 18:29:21 +0100 Subject: Split demo in :target views --- tpl/objects/dialog.pug | 2 +- tpl/objects/menu.pug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tpl/objects') diff --git a/tpl/objects/dialog.pug b/tpl/objects/dialog.pug index 12726a3..2823e41 100644 --- a/tpl/objects/dialog.pug +++ b/tpl/objects/dialog.pug @@ -30,7 +30,7 @@ mixin dialog(title) .o-dialog__sidebar - slots.sidebar() header.o-dialog__header - +div-heading('lg')(class='o-dialog__title') + +div-heading('md')(class='o-dialog__title') = title +action-button(round=true quiet=true icon='x' class='o-dialog__close-btn') section(class=bodyClass) diff --git a/tpl/objects/menu.pug b/tpl/objects/menu.pug index 84321d7..c6e8223 100644 --- a/tpl/objects/menu.pug +++ b/tpl/objects/menu.pug @@ -18,7 +18,7 @@ mixin menu-item 'is-selected': attributes.selected, } - button(class=classes, disabled=attributes.disabled) + #{!!attributes.tag ? attributes.tag : 'button'}(class=classes)&attributes(attributes) .l-card.l-card--flush.l-card--75 if attributes.icon .l-card__block.o-menu__icon-slot -- cgit v1.2.3-70-g09d2