diff --git a/components/Molecules/ChoiceCards/Checkbox/CheckboxChoiceCard.stories.js b/components/Molecules/ChoiceCards/Checkbox/CheckboxChoiceCard.stories.js
index a6d6eed..04cf32c 100644
--- a/components/Molecules/ChoiceCards/Checkbox/CheckboxChoiceCard.stories.js
+++ b/components/Molecules/ChoiceCards/Checkbox/CheckboxChoiceCard.stories.js
@@ -11,7 +11,8 @@ export const base = {
size: 'sm',
disabled: false,
description: 'ici une courte description',
- active: false
+ name: 'checkbox',
+ checked: false
},
argTypes: {
size: {
@@ -26,9 +27,6 @@ export const base = {
},
description: {
control: { type: 'text' }
- },
- active: {
- control: { type: 'boolean' }
}
}
};
diff --git a/components/Molecules/ChoiceCards/Checkbox/CheckboxChoiceCard.twig b/components/Molecules/ChoiceCards/Checkbox/CheckboxChoiceCard.twig
index 5698abb..7e2d7de 100644
--- a/components/Molecules/ChoiceCards/Checkbox/CheckboxChoiceCard.twig
+++ b/components/Molecules/ChoiceCards/Checkbox/CheckboxChoiceCard.twig
@@ -1,5 +1,5 @@
{% set choiceCardClasses = 'ChoiceCard ChoiceCard--' ~ size %}
-{% if active %}
+{% if checked %}
{% set choiceCardClasses = choiceCardClasses ~ ' ChoiceCard--active' %}
{% endif %}
{% if disabled %}
@@ -7,7 +7,7 @@
{% endif %}
- {% include '../../Form/Checkbox.twig' with { label: text } %}
+ {% include '../../Form/Checkbox.twig' with { label: text, name: name, disabled: disabled, checked: checked, classes: "inChoiceCard" } %}
{% if description and size == "lg" %}
{{ description }}
diff --git a/components/Molecules/ChoiceCards/Radio/RadioChoiceCard.stories.js b/components/Molecules/ChoiceCards/Radio/RadioChoiceCard.stories.js
index 9eaf0f4..e83d71e 100644
--- a/components/Molecules/ChoiceCards/Radio/RadioChoiceCard.stories.js
+++ b/components/Molecules/ChoiceCards/Radio/RadioChoiceCard.stories.js
@@ -11,7 +11,8 @@ export const base = {
size: 'sm',
disabled: false,
description: 'ici une courte description',
- active: false
+ name: 'radio',
+ checked: false
},
argTypes: {
size: {
@@ -26,9 +27,6 @@ export const base = {
},
description: {
control: { type: 'text' }
- },
- active: {
- control: { type: 'boolean' }
}
}
};
diff --git a/components/Molecules/ChoiceCards/Radio/RadioChoiceCard.twig b/components/Molecules/ChoiceCards/Radio/RadioChoiceCard.twig
index b8ec83f..45f34bd 100644
--- a/components/Molecules/ChoiceCards/Radio/RadioChoiceCard.twig
+++ b/components/Molecules/ChoiceCards/Radio/RadioChoiceCard.twig
@@ -1,5 +1,5 @@
{% set choiceCardClasses = 'ChoiceCard ChoiceCard--' ~ size %}
-{% if active %}
+{% if checked %}
{% set choiceCardClasses = choiceCardClasses ~ ' ChoiceCard--active' %}
{% endif %}
{% if disabled %}
@@ -7,7 +7,7 @@
{% endif %}
- {% include '../../Form/Radio.twig' with { label: text } %}
+ {% include '../../Form/Radio.twig' with { label: text, name: name, disabled: disabled, checked: checked, classes: "inChoiceCard" } %}
{% if description and size == "lg" %}
{{ description }}
diff --git a/components/Molecules/Form/Checkbox.twig b/components/Molecules/Form/Checkbox.twig
index 6cd246d..b2dbf7e 100644
--- a/components/Molecules/Form/Checkbox.twig
+++ b/components/Molecules/Form/Checkbox.twig
@@ -1,5 +1,5 @@