Remove aria-haspopup from disclosure buttons
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3419915. --> Reported by: [hbrokmeier](https://www.drupal.org/user/3736246) Related to !7 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p><code>aria-haspopup="menu"</code> is being used incorrectly on disclosure buttons. According to the spec:</p> <blockquote><p>Authors MUST ensure that the role of the element that serves as the container for the popup content is <code>menu</code>, <code>listbox</code>, <code>tree</code>, <code>grid</code>, or <code>dialog</code>, and that the value of <code>aria-haspopup</code> matches the role of the popup container.</p> <p><a href="https://www.w3.org/TR/wai-aria-1.2/#aria-haspopup">https://www.w3.org/TR/wai-aria-1.2/#aria-haspopup</a></p></blockquote> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Remove <code>aria-haspopup</code> from the disclosure buttons. <code>aria-expanded</code> already conveys that more content will be revealed.</p>
issue