blob: 301c6b3db6d79dc840859eb18c1cd796f0631ced (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
include icon.pug
mixin overflow-button
-
let classes = {
'o-overflow-button': true,
'u-d-block': attributes.block,
'is-selected': attributes.selected
}
if (attributes.variant) {
classes['o-overflow-button--' + attributes.variant] = true
}
if (attributes.class) {
classes[attributes.class] = true;
}
let href = attributes.disabled ? null : '#';
a(class=classes href=href)
.o-overflow-button__inside
if attributes.icon
+icon(attributes.icon)(block=!block)
= ' '
.o-overflow-button__outside
block
|