diff options
| author | Volpeon <git@volpeon.ink> | 2024-06-26 09:19:02 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2024-06-26 09:19:02 +0200 |
| commit | 4e87fb46f2958ae28bdcfbc469118f14297b4d26 (patch) | |
| tree | 4b1a6c99a5e2273487eb3cff9db5c60007241d20 /tpl/objects | |
| parent | Action button styling (diff) | |
| download | iro-design-4e87fb46f2958ae28bdcfbc469118f14297b4d26.tar.gz iro-design-4e87fb46f2958ae28bdcfbc469118f14297b4d26.tar.bz2 iro-design-4e87fb46f2958ae28bdcfbc469118f14297b4d26.zip | |
Pill version for action button
Diffstat (limited to 'tpl/objects')
| -rw-r--r-- | tpl/objects/action-button.pug | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tpl/objects/action-button.pug b/tpl/objects/action-button.pug index c0d7582..976a646 100644 --- a/tpl/objects/action-button.pug +++ b/tpl/objects/action-button.pug | |||
| @@ -6,9 +6,13 @@ mixin action-button | |||
| 6 | 'o-action-button': true, | 6 | 'o-action-button': true, |
| 7 | 'u-d-block': attributes.block, | 7 | 'u-d-block': attributes.block, |
| 8 | 'o-action-button--quiet': attributes.quiet, | 8 | 'o-action-button--quiet': attributes.quiet, |
| 9 | 'o-action-button--round': attributes.round, | 9 | 'o-action-button--pill': attributes.pill, |
| 10 | 'o-action-button--icon': !!attributes.icon && !block, | ||
| 10 | 'is-selected': attributes.selected | 11 | 'is-selected': attributes.selected |
| 11 | } | 12 | } |
| 13 | if (attributes.size) { | ||
| 14 | classes['o-action-button--' + attributes.size] = true | ||
| 15 | } | ||
| 12 | if (attributes.class) { | 16 | if (attributes.class) { |
| 13 | classes[attributes.class] = true; | 17 | classes[attributes.class] = true; |
| 14 | } | 18 | } |
