Problem/Motivation

In `themes/bs_bootstrap/templates/form/fieldset.html.twig` we have a comment and if statement inside of a legend that will cause empty lines in rendered HTML:

<legend>
                <span class="fieldset-legend">Your name</span>      </legend>

This empty spaces will produce a small layout bug in Firefox because Firefox will actually render single empty space before legend inner text.

We should remove all empty space and lines so ideally we have

<legend><span class="fieldset-legend">Your name</span></legend>
CommentFileSizeAuthor
#2 legend-remove-empty-space-3157203-2.patch969 bytespivica

Comments

pivica created an issue. See original summary.

pivica’s picture

StatusFileSize
new969 bytes

Here is a patch.

sasanikolic’s picture

Status: Active » Reviewed & tested by the community

Tested locally, works fine for me.

  • pivica committed 9e3b0e3 on 8.x-1.x
    Issue #3157203 by pivica, sasanikolic: Empty spaces in fieldset legend...
pivica’s picture

Status: Reviewed & tested by the community » Fixed

Thx, committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.