From 69d753931c098bc18cd23e96af18f736a772f416 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 22 Jun 2024 23:00:16 +0200 Subject: Update --- tpl/objects/button.pug | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tpl/objects/button.pug') diff --git a/tpl/objects/button.pug b/tpl/objects/button.pug index e99e5ab..61ba0b6 100644 --- a/tpl/objects/button.pug +++ b/tpl/objects/button.pug @@ -9,11 +9,14 @@ mixin a-button if (attributes.variant) { classes['o-button--' + attributes.variant] = true } + if (attributes.size) { + classes['o-button--' + attributes.size] = true + } let href = attributes.disabled ? null : '#'; a(class=classes href=href aria-disabled=attributes.disabled && String(attributes.disabled)) if attributes.icon - +icon(attributes.icon)(block=!block) + +icon(attributes.icon) = ' ' block -- cgit v1.2.3-54-g00ecf