Clean variant logic in templates
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3498894. -->
Reported by: [smustgrave](https://www.drupal.org/user/3252890)
Related to !99
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Example <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ui_suite_material/issues/3497483" title="Status: Closed (fixed)">#3497483: [2.0.0-beta1] Clean variant logic in templates</a></span></p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue