summaryrefslogtreecommitdiffstats
path: root/tpl/objects/radio.pug
blob: ba941be3dc0ce679417647c5b054aa9ad2bd9c01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
mixin radio
    -
        let classes = {
            'o-radio':         true,
            'o-radio--accent': attributes.accent,
        }

    label(class=classes)
        input.o-radio__native(type='radio')&attributes(attributes)
        .o-radio__circle
        .o-radio__label
            block
        .o-radio__bg