diff options
| author | Volpeon <git@volpeon.ink> | 2022-02-06 10:28:10 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2022-02-06 10:28:10 +0100 |
| commit | ea8b0bc19219f6f931e3be757c25743c2c828b2e (patch) | |
| tree | 056af48e13f84e76cb9a26b8b76d28a4fe48d404 /tpl/objects/radio.pug | |
| parent | Added radio (diff) | |
| download | iro-design-ea8b0bc19219f6f931e3be757c25743c2c828b2e.tar.gz iro-design-ea8b0bc19219f6f931e3be757c25743c2c828b2e.tar.bz2 iro-design-ea8b0bc19219f6f931e3be757c25743c2c828b2e.zip | |
Added checkbox and switch
Diffstat (limited to 'tpl/objects/radio.pug')
| -rw-r--r-- | tpl/objects/radio.pug | 8 |
1 files changed, 7 insertions, 1 deletions
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 @@ | |||
| 1 | mixin radio | 1 | mixin radio |
| 2 | label.o-radio | 2 | - |
| 3 | let classes = { | ||
| 4 | 'o-radio': true, | ||
| 5 | 'o-radio--accent': attributes.accent, | ||
| 6 | } | ||
| 7 | |||
| 8 | label(class=classes) | ||
| 3 | input.o-radio__native(type='radio')&attributes(attributes) | 9 | input.o-radio__native(type='radio')&attributes(attributes) |
| 4 | .o-radio__circle | 10 | .o-radio__circle |
| 5 | .o-radio__label | 11 | .o-radio__label |
