- Issue created by @hoffismo
- π¦πΊAustralia hoffismo Brisbane, Queensland
This patch removes the @todo code.
- @hoffismo opened merge request.
- Status changed to Needs review
almost 2 years ago 4:20am 21 March 2023 The last submitted patch, 2: fieldset-description-display-3349222-2.patch, failed testing. View results β
- Status changed to RTBC
over 1 year ago 3:09pm 13 April 2023 -
jrockowitz β
authored 9e0672cf on 6.1.x
Issue #3349222 by hoffismo, jrockowitz: Fieldset elements with #...
-
jrockowitz β
authored 9e0672cf on 6.1.x
-
jrockowitz β
authored 9e0672cf on 6.x
Issue #3349222 by hoffismo, jrockowitz: Fieldset elements with #...
-
jrockowitz β
authored 9e0672cf on 6.x
-
jrockowitz β
authored 9e0672cf on 6.2.x
Issue #3349222 by hoffismo, jrockowitz: Fieldset elements with #...
-
jrockowitz β
authored 9e0672cf on 6.2.x
- Status changed to Fixed
over 1 year ago 7:53pm 25 May 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 5:06pm 30 August 2023 - πΊπΈUnited States Greg Boggs Portland Oregon
This fix works for me for text fields, but for select lists in a fieldset, the description still goes to the bottom. Screenshot attached.
- π§πͺBelgium RandalV
Can confirm that this still happens when items are wrapped in a fieldset.
For example, the Webform Scale-element.I'm not sure how to fix this.
- πΊπΈUnited States Greg Boggs Portland Oregon
What we're doing for a work around on this is using an HTML field and not using the description field on field sets. It's not ideal, but it works for now.
- π¦πΊAustralia hitesh.koli Melbourne
This issue still exist when items are wrapped in the fieldset.
The only way to fix this was use `template_preprocess_fieldset()` in the custom theme and set `description_display` value (before/after).
- πΊπΈUnited States helianthropy
For folks still seeing the description appear at the end of the fieldset despite setting it to "before," check your theme to determine if itβs checking for
description_display
. Mine wasnβt. I copied the relevant code from my themeβs base theme (stable9 at core/themes/stable9/form/fieldset.html.twig) which uses the following structure:<div class="fieldset-wrapper"> {% if description_display == 'before' and description.content %} <div{{ description.attributes.addClass('description') }}>{{ description.content }}</div> {% endif %} {% if errors %} <div> {{ errors }} </div> {% endif %} {% if prefix %} <span class="field-prefix">{{ prefix }}</span> {% endif %} {{ children }} {% if suffix %} <span class="field-suffix">{{ suffix }}</span> {% endif %} {% if description_display in ['after', 'invisible'] and description.content %} <div{{ description.attributes.addClass('description') }}>{{ description.content }}</div> {% endif %} </div> </fieldset>
- πΊπΈUnited States jumpsuitgreen
@helianthropy, Thanks for posting that! A quick fix.