blob: 441eb513297ea5c4e718859ecff7e6f8d716f675 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
mixin badge(variant)
-
let classes = {
'o-badge': true,
'o-menu__badge': !!attributes.menu
}
if (attributes.size) {
classes['o-badge--' + attributes.size] = true
}
if (variant) {
classes['o-badge--' + variant] = true
}
a(href="#", class=classes)
block
|