Skip to content

Form validation errors rendered inside label tag in bootstrap4 layout #26461

Closed
@mmarton

Description

@mmarton
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 4

Hi!

I'm not sure if it is a bug or intentional, but in bootstrap4 form layout the validation errors are rendered inside the label tag see:
https://github.com/symfony/twig-bridge/blob/master/Resources/views/Form/bootstrap_4_layout.html.twig#L206

It's not exactly how bootstrap recommends it.
https://getbootstrap.com/docs/4.0/components/forms/#validation

Regards,
Marton

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions