diff options
| author | Volpeon <git@volpeon.ink> | 2024-06-22 23:00:16 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2024-06-22 23:00:16 +0200 |
| commit | 69d753931c098bc18cd23e96af18f736a772f416 (patch) | |
| tree | a40beef43a215fd76972e41085d3af1b123fed32 /tpl/objects/button.pug | |
| parent | Update (diff) | |
| download | iro-design-69d753931c098bc18cd23e96af18f736a772f416.tar.gz iro-design-69d753931c098bc18cd23e96af18f736a772f416.tar.bz2 iro-design-69d753931c098bc18cd23e96af18f736a772f416.zip | |
Update
Diffstat (limited to 'tpl/objects/button.pug')
| -rw-r--r-- | tpl/objects/button.pug | 5 |
1 files changed, 4 insertions, 1 deletions
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 | |||
| 9 | if (attributes.variant) { | 9 | if (attributes.variant) { |
| 10 | classes['o-button--' + attributes.variant] = true | 10 | classes['o-button--' + attributes.variant] = true |
| 11 | } | 11 | } |
| 12 | if (attributes.size) { | ||
| 13 | classes['o-button--' + attributes.size] = true | ||
| 14 | } | ||
| 12 | 15 | ||
| 13 | let href = attributes.disabled ? null : '#'; | 16 | let href = attributes.disabled ? null : '#'; |
| 14 | 17 | ||
| 15 | a(class=classes href=href aria-disabled=attributes.disabled && String(attributes.disabled)) | 18 | a(class=classes href=href aria-disabled=attributes.disabled && String(attributes.disabled)) |
| 16 | if attributes.icon | 19 | if attributes.icon |
| 17 | +icon(attributes.icon)(block=!block) | 20 | +icon(attributes.icon) |
| 18 | = ' ' | 21 | = ' ' |
| 19 | block | 22 | block |
