diff --git a/packages/web-twig/DEPRECATIONS-v3.md b/packages/web-twig/DEPRECATIONS-v3.md index cd3ed48510..4dd7c68913 100644 --- a/packages/web-twig/DEPRECATIONS-v3.md +++ b/packages/web-twig/DEPRECATIONS-v3.md @@ -8,22 +8,6 @@ Following deprecations will be removed in version 3 of the _spirit-web-twig_ pac ## Deprecations -### Required `id` Prop For Form Components - -The `id` prop will be required for all form components. - -Related components: - -- `Checkbox` -- `HelperText` -- `Radio` -- `Select` -- `ValidationText` - -#### Migration Guide - -Add `id` prop to the form components. - ### Dropdown `id` Prop The `id` prop will be mandatory for the `Dropdown` component. diff --git a/packages/web-twig/src/Resources/components/Checkbox/Checkbox.twig b/packages/web-twig/src/Resources/components/Checkbox/Checkbox.twig index 96103840db..15b7c12aaa 100644 --- a/packages/web-twig/src/Resources/components/Checkbox/Checkbox.twig +++ b/packages/web-twig/src/Resources/components/Checkbox/Checkbox.twig @@ -1,7 +1,7 @@ {# API #} {%- set props = props | default([]) -%} {%- set _helperText = props.helperText | default(null) -%} -{%- set _id = props.id | default(null) -%} +{%- set _id = props.id -%} {%- set _inputProps = props.inputProps | default([]) -%} {%- set _isChecked = props.isChecked | default(false) -%} {%- set _isDisabled = props.isDisabled | default(false) -%} @@ -44,11 +44,6 @@ {%- set _mainPropsWithoutId = props | filter((value, prop) => prop is not same as('id')) -%} {%- set _allowedInputAttributes = [ 'autocomplete' ] -%} -{# Deprecations #} -{% if not _id %} - {% deprecated 'Checkbox: The "id" property will be required starting from the next major version.' %} -{% endif %} -