django-crispy-forms / crispy-bootstrap5

Bootstrap5 template pack for django-crispy-forms
MIT License
462 stars 76 forks source link

Label class for AppendedText built incorrectly when form_class is not form-horizontal #184

Open yuriiz opened 3 months ago

yuriiz commented 3 months ago

When AppendedText is included in form which class it not "form-horizontal", it's label class becomes "form-label{{ label_class }}" while it should be "form-label {{ label_class }} due to bug in https://github.com/django-crispy-forms/crispy-bootstrap5/blob/main/crispy_bootstrap5/templates/bootstrap5/layout/prepended_appended_text.html#L9.