From a6d99f8dabeca07f339bedec3d48f0bad7b45be9 Mon Sep 17 00:00:00 2001 From: ines Date: Thu, 1 Jun 2017 17:56:18 +0200 Subject: [PATCH] Add prefix to option IDs to avoid conflicts --- website/_includes/_mixins-base.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/_includes/_mixins-base.jade b/website/_includes/_mixins-base.jade index 359839d67..106f8f1ca 100644 --- a/website/_includes/_mixins-base.jade +++ b/website/_includes/_mixins-base.jade @@ -136,8 +136,8 @@ mixin quickstart(groups, headline) .c-quickstart__legend=group.title .c-quickstart__fields for option in group.options - input.c-quickstart__input(class="c-quickstart__input--" + (group.multiple ? "check" : "radio") type=group.multiple ? "checkbox" : "radio" name=group.id id=option.id value=option.id checked=option.checked) - label.c-quickstart__label(for=option.id)=option.title + input.c-quickstart__input(class="c-quickstart__input--" + (group.multiple ? "check" : "radio") type=group.multiple ? "checkbox" : "radio" name=group.id id="qs-#{option.id}" value=option.id checked=option.checked) + label.c-quickstart__label(for="qs-#{option.id}")=option.title if option.meta | #[span.c-quickstart__label__meta (#{option.meta})] if option.help