From 1f13187d39140f1be15846e4944b4b38be849362 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 12 Feb 2022 08:12:00 +0100 Subject: Added close button to dialog --- tpl/objects/action-button.pug | 1 + tpl/objects/dialog.pug | 2 ++ 2 files changed, 3 insertions(+) (limited to 'tpl') diff --git a/tpl/objects/action-button.pug b/tpl/objects/action-button.pug index eb524a2..a695bee 100644 --- a/tpl/objects/action-button.pug +++ b/tpl/objects/action-button.pug @@ -6,6 +6,7 @@ mixin action-button 'o-action-button': true, 'o-action-button--block': attributes.block, 'o-action-button--quiet': attributes.quiet, + 'o-action-button--round': attributes.round, 'is-disabled': attributes.disabled, 'is-selected': attributes.selected } diff --git a/tpl/objects/dialog.pug b/tpl/objects/dialog.pug index 7e3e2d6..0ee52df 100644 --- a/tpl/objects/dialog.pug +++ b/tpl/objects/dialog.pug @@ -1,12 +1,14 @@ include rule.pug include button.pug include heading.pug +include action-button.pug mixin dialog(title) .o-dialog.t-raised header.o-dialog__header +div-heading('lg')(class='o-dialog__title') = title + +action-button(round=true quiet=true icon='x' class='o-dialog__close-btn') +rule('medium')(class='o-dialog__rule') section.o-dialog__body block -- cgit v1.2.3-70-g09d2