diff options
author | Volpeon <git@volpeon.ink> | 2023-10-17 12:37:17 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-10-17 12:37:17 +0200 |
commit | 80f4c3d9a521321fff9d9ec495172b2a8318b0a4 (patch) | |
tree | 61c73f60b010a570df2ef75e4888b32df946b526 /tpl/objects | |
parent | Added primary badge (diff) | |
download | iro-design-80f4c3d9a521321fff9d9ec495172b2a8318b0a4.tar.gz iro-design-80f4c3d9a521321fff9d9ec495172b2a8318b0a4.tar.bz2 iro-design-80f4c3d9a521321fff9d9ec495172b2a8318b0a4.zip |
Fix badge in menu item
Diffstat (limited to 'tpl/objects')
-rw-r--r-- | tpl/objects/badge.pug | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tpl/objects/badge.pug b/tpl/objects/badge.pug index 1525130..441eb51 100644 --- a/tpl/objects/badge.pug +++ b/tpl/objects/badge.pug | |||
@@ -1,7 +1,8 @@ | |||
1 | mixin badge(variant) | 1 | mixin badge(variant) |
2 | - | 2 | - |
3 | let classes = { | 3 | let classes = { |
4 | 'o-badge': true | 4 | 'o-badge': true, |
5 | 'o-menu__badge': !!attributes.menu | ||
5 | } | 6 | } |
6 | if (attributes.size) { | 7 | if (attributes.size) { |
7 | classes['o-badge--' + attributes.size] = true | 8 | classes['o-badge--' + attributes.size] = true |