the template for fieldset has the following code
<fieldset class="{{ classes }} {% if collapsed %}collapsed{% endif %}">

this adds an annoying extra space after the last class, the culprit is the segment
{% if collapsed %}collapsed{% endif %}"
*note the initial space

besides there were no collapsed attribute, this approach inserts a space into the classes attribute in all cases

solution:
traverse the classes and inject afterwards the collapsed attribute if needed

Comments

leandro713 created an issue. See original summary.

pifagor’s picture

Issue tags: +epam-contrib-2018
romixua’s picture

Assigned: Unassigned » romixua
romixua’s picture

Assigned: romixua » Unassigned
Status: Active » Needs review
StatusFileSize
new2.45 KB

I implemented classes render using an attributes variable

pifagor’s picture

  • pifagor committed 9e7f8e6 on 8.x-3.x authored by Romixua
    Issue #3006726 by Romixua, pifagor, leandro713: structure in twig...
pifagor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

alex_optim’s picture

Patch work for me.

pifagor’s picture