Improvements for the sidebar toggle button
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3590284. --> Reported by: [ts.ag](https://www.drupal.org/user/3754435) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The sidebar toggle button has the "is-active" class when the sidebar is visible; this class is used elsewhere for active elements of a given set and so it makes no sense here, grabbing extra focus from the user unnecessarily.</p> <p>It also has a title attribute that is redundant, given the existence of the same text in the tooltip.</p> <p>Sometimes, it receives a click event in cases where it shouldn't, toggling the sidebar without the user's intent.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>For the unintended click I don't have clear steps to provide, but it happens sometimes right after switching back to the browser tab from another tab. The gin_toolbar &amp; admin_toolbar modules might or might not be involved in this, with or without the use of Ctrl+click on various admin menu links.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Replace the "is-active" class with a "can-collapse" class &amp; remove the title attribute (see attached image), and fix the unintended button activation.</p>
issue