From 80f4c3d9a521321fff9d9ec495172b2a8318b0a4 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 17 Oct 2023 12:37:17 +0200 Subject: Fix badge in menu item --- tpl/objects/badge.pug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tpl/objects') 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 @@ mixin badge(variant) - let classes = { - 'o-badge': true + 'o-badge': true, + 'o-menu__badge': !!attributes.menu } if (attributes.size) { classes['o-badge--' + attributes.size] = true -- cgit v1.2.3-70-g09d2