IconWidget does not pass field description to icon selector element
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3583727. -->
Reported by: [_san_](https://www.drupal.org/user/2794821)
Related to !91
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The <code>IconWidget::formElement()</code> method in the UI Icons Field submodule does not forward the <code>#description</code> property from the parent <code>$element</code> to the <code>value</code> sub-element.</p>
<p>Any field help text configured in the Drupal field UI is silently dropped and never rendered.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Add a UI Icon field to a content type</li>
<li>In the field settings, enter help text in the "Help text" field</li>
<li>View the node add/edit form</li>
<li>Observe that the help text is not displayed below the icon selector</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Pass the <code>#description</code> property through to the <code>value</code> element in <code>IconWidget::formElement()</code>:</p>
<div class="codeblock">
<pre><span style="color: #000000"><span style="color: #0000BB"><?php<br></span><span style="color: #DD0000">'#description' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$element</span><span style="color: #007700">[</span><span style="color: #DD0000">'#description'</span><span style="color: #007700">] ?? </span><span style="color: #DD0000">''</span><span style="color: #007700">,<br></span><span style="color: #0000BB">?></span></span></pre></div>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<ul>
<li>Review and test the patch/MR</li>
</ul>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>Field help text will now be displayed below the icon selector widget, as expected.</p>
<h3 id="summary-api-changes">API changes</h3>
<p>None.</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>None.</p>
issue