Following #description_display work defined for elements in issue :and what has been done more specifically for fieldsets here , this issue defines the same work to be done for details type element. Two issue found :
- The description id is wrong, currently details-description instead of $field_id . '--description as other elements.
- The description_display position is not taken into consideration.
Change template_preprocess_details() in form.inc to include accounting of #description_display element key. Also update the details.html.twig templates to use description_display setting.
NOTE: contrarily to fieldset, the description for details is before by default.
- Create a WebBaseTest test to check the rendering of the description position in details. - Create a patch to solve the two points of this issue.
- Review patch and fix.
User interface changes
Description of details elements will now be positionned before or after details content depending of description_display.
None: #description_display should already be part of formAPI regarding.
|#81||Screen Shot 2015-12-07 at 5.55.09 AM.png||522.84 KB||mgifford|