Admin Toolbar item getting .menu-item--expanded when no actual submenu present
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3556707. -->
Reported by: [jedihe](https://www.drupal.org/user/350711)
Related to !735
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Using Gin theme with admin_toolbar_tools and entityqueue, setting a role with only "Manipulate all queues" and "Manipulate queues" permissions results in Structure > Entityqueues item getting .menu-item--expanded but the markup doesn't really contain any submenu.</p>
<p><img src="https://www.drupal.org/files/issues/2025-11-07/3556707-no-submenu.png" width="423" height="282" alt="Dropdown icon but no submenu"></p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>(Not yet tested)</p>
<ol>
<li>Install Drupal 11, with Gin theme MMM, Admin Toolbar MMM and Entityqueue MMM.</li>
<li>Set gin as administration theme, enable the toolbar, in horizontal mode.</li>
<li>Configure a role "editor", grant permissions: "view administration theme", "Manipulate queues", "Manipulate all queues"</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>In menu--toolbar--gin.html.twig, also check for item.below and not just for item.is_expanded, in order to set .menu-item--expanded.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>TBD</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>Dropdown menu items with no actual submenu don't show the submenu icon.</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