Change record status: 
Project: 
Introduced in branch: 
11.2.x
Introduced in version: 
11.2.0
Description: 

In the template form-element.html.twig, certain classes are added to the div element that contains the form element description. These classes were added only when description_display was set to "after" or "invisible", but not when it was set to "before". With this change, the classes will always be set.

The files that are changed are the core form-element.html.twig and that template in themes stable9, starterkit_theme, and umami.

Before:

    <div{{ description.attributes }}>
      {{ description.content }}
    </div>

After:

    <div{{ description.attributes.addClass(description_classes) }}>
      {{ description.content }}
    </div>
Impacts: 
Themers