From ea8b0bc19219f6f931e3be757c25743c2c828b2e Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 6 Feb 2022 10:28:10 +0100 Subject: Added checkbox and switch --- tpl/objects/radio.pug | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tpl/objects/radio.pug') diff --git a/tpl/objects/radio.pug b/tpl/objects/radio.pug index da6a026..8cb1b1f 100644 --- a/tpl/objects/radio.pug +++ b/tpl/objects/radio.pug @@ -1,5 +1,11 @@ mixin radio - label.o-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 -- cgit v1.2.3-54-g00ecf