diff --git a/form/bootstrap4.rst b/form/bootstrap4.rst index 685d47f0313..6831ef775b2 100644 --- a/form/bootstrap4.rst +++ b/form/bootstrap4.rst @@ -97,8 +97,8 @@ and ``checkbox-custom`` respectively. .. code-block:: html+twig - {{ form_row(form.myRadio, {attr: {class: 'radio-custom'} }) }} - {{ form_row(form.myCheckbox, {attr: {class: 'checkbox-custom'} }) }} + {{ form_row(form.myRadio, {label_attr: {class: 'radio-custom'} }) }} + {{ form_row(form.myCheckbox, {label_attr: {class: 'checkbox-custom'} }) }} Labels and Errors -----------------