Span and Label needed to support theming
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3254213. -->
Reported by: [will kirchheimer](https://www.drupal.org/user/112597)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>We need to add additional html elements to the markup in order to support icon button theming.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add span and labels to the module.</p>
<p>If we change from :</p>
<pre><input class="feedback-btn feedback-btn__no button js-form-submit form-submit form-control" data-node-id="5508" data-feedback="no" type="submit" name="op" value="No"></pre><p>To:</p>
<pre><span class="feedback-no-button"><br> <input class="feedback-btn feedback-btn__no button js-form-submit form-submit form-control" id="feedback-no-button-5508" data-node-id="5508" data-feedback="no" type="submit" name="op" value="No"><br> <label for="feedback-no-button-5508"></label><br></span></pre><p>Then we get to add CSS in our theme to achieve goals like:</p>
<pre>#feedback-message {<br> #upper-feedback-content {<br><br><br> .feedback-yes-button::before{<br> font-family: "Font Awesome 5 Free";<br> font-weight: 400;<br> content: "\f164";<br> color: blue;<br> font-size: 32px;<br> text-align: center;<br> }<br><br> .feedback-no-button::before{<br> font-family: "Font Awesome 5 Free";<br> font-weight: 400;<br> content: "\f165";<br> color: blue;<br> font-size: 32px;<br> text-align: center;<br> }<br><br> .feedback-btn__no, .feedback-btn__yes{<br> display:none;<br> }<br> }<br>}<br><br><br><br>.feedback-yes-button{<br> label {<br> padding-left: 20px;<br> width: 50px;<br> height: 50px;<br> top: -50px;<br> z-index: 1000;<br> position: relative;<br> cursor: pointer;<br> }<br><br>}<br>.feedback-no-button{<br> label {<br> padding-left: 20px;<br> width: 50px;<br> height: 50px;<br> top: -50px;<br> z-index: 1000;<br> position: relative;<br> cursor: pointer;<br> }<br>}<br><br>.feedback-yes-button{<br> display: inline-grid;<br> height: 50px;<br> width: 50px;<br>}<br>.feedback-no-button{<br> display: inline-grid;<br> height: 50px;<br> width: 50px;<br> margin-left: 20px;<br>}</pre><p>Allowing the presentation of the Vote Buttons to move from:</p>
<p><img src="https://www.drupal.org/files/issues/2021-12-13/UnThemedYesNo.png" alt="Unthemed Yes No buttons"></p>
<p>To:</p>
<p><img src="https://www.drupal.org/files/issues/2021-12-13/ThemedYesNo.png" alt="themed Yes No buttons"></p>
issue