From 3e2b42ee926aafcdf1d77e63b0f86565f4ec51b2 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 5 Jul 2024 07:21:31 +0200 Subject: Update button --- tpl/objects/badge.pug | 16 ++++++++++++---- tpl/objects/button.pug | 7 ++++++- 2 files changed, 18 insertions(+), 5 deletions(-) (limited to 'tpl/objects') diff --git a/tpl/objects/badge.pug b/tpl/objects/badge.pug index c91e74f..48e4029 100644 --- a/tpl/objects/badge.pug +++ b/tpl/objects/badge.pug @@ -18,12 +18,20 @@ mixin badge(variant) if attributes.icon +icon(attributes.icon) = ' ' - span.o-badge__label - block + if block + span.o-badge__label + block + if attributes.postIcon + = ' ' + +icon(attributes.postIcon) else span(class=classes) if attributes.icon +icon(attributes.icon) = ' ' - span.o-badge__label - block + if block + span.o-badge__label + block + if attributes.postIcon + = ' ' + +icon(attributes.postIcon) diff --git a/tpl/objects/button.pug b/tpl/objects/button.pug index 1fa3347..0884c8d 100644 --- a/tpl/objects/button.pug +++ b/tpl/objects/button.pug @@ -20,4 +20,9 @@ mixin a-button if attributes.icon +icon(attributes.icon) = ' ' - block + if block + span.o-button__label + block + if attributes.postIcon + = ' ' + +icon(attributes.postIcon) -- cgit v1.2.3-70-g09d2