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 ++++++- tpl/views/button.pug | 9 +++++++++ 3 files changed, 27 insertions(+), 5 deletions(-) (limited to 'tpl') 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) diff --git a/tpl/views/button.pug b/tpl/views/button.pug index eacf302..edd8ef6 100644 --- a/tpl/views/button.pug +++ b/tpl/views/button.pug @@ -18,6 +18,15 @@ mixin view-button = ' ' +a-button(size='xl' outline=true)= 'Button' + .c-box + +a-button(postIcon='arrow-right' size='sm')= 'Button' + = ' ' + +a-button(postIcon='arrow-right')= 'Button' + = ' ' + +a-button(postIcon='arrow-right' size='lg')= 'Button' + = ' ' + +a-button(postIcon='arrow-right' size='xl')= 'Button' + .c-box .l-button-group +a-button= 'Button' -- cgit v1.2.3-70-g09d2