8000 [#12464] Minor changes · symfony/symfony-docs@539ec5e · GitHub
[go: up one dir, main page]

Skip to content

Commit 539ec5e

Browse files
committed
[#12464] Minor changes
1 parent d379dae commit 539ec5e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

form/bootstrap4.rst

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,16 @@ for **all** users.
9191
Custom Forms
9292
------------
9393

94+
.. versionadded:: 4.4
95+
96+
Support for the ``switch-custom`` class was introduced in Symfony 4.4.
97+
9498
Bootstrap 4 has a feature called "`custom forms`_". You can enable that on your
95-
Symfony Form ``RadioType`` and ``CheckboxType`` by adding some classes over the label:
99+
Symfony Form ``RadioType`` and ``CheckboxType`` by adding some classes to the label:
96100

97-
- for radio, use ``radio-custom``
98-
- for a custom checkbox, use ``checkbox-custom``
99-
- for having a switch instead of a checkbox, use ``switch-custom``
101+
* For a `custom radio`_, use ``radio-custom``;
102+
* For a `custom checkbox`_, use ``checkbox-custom``;
103+
* For having a `switch instead of a checkbox`_, use ``switch-custom``.
100104

101105
.. code-block:: twig
102106
@@ -116,4 +120,7 @@ is a strong connection between the error and its ``<input>``, as required by the
116120
`WCAG 2.0 standard`_.
117121

118122
.. _`WCAG 2.0 standard`: https://www.w3.org/TR/WCAG20/
119-
.. _`custom forms`: https://getbootstrap.com/docs/4.1/components/forms/#custom-forms
123+
.. _`custom forms`: https://getbootstrap.com/docs/4.3/components/forms/#custom-forms
124+
.. _`custom radio`: https://getbootstrap.com/docs/4.3/components/forms/#radios
125+
.. _`custom checkbox`: https://getbootstrap.com/docs/4.3/components/forms/#checkboxes
126+
.. _`switch instead of a checkbox`: https://getbootstrap.com/docs/4.3/components/forms/#switches

0 commit comments

Comments
 (0)
0