Focus search on open + add aria attributes
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3533945. --> Reported by: [mherchel](https://www.drupal.org/user/118428) Related to !175 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>One thing that bugs the &#128169; of me on websites, is when I open up the search drawer, and then I have to click AGAIN to put the cursor in the search input. This steals seconds from me per year!</p> <p>Anyway, lets fix this on Drupal.org, and make the web a better place. </p> <p>While we're there, we should also make use of the <code>aria-expanded</code> and <code>aria-controls</code> attributes, which inform screen readers of the current state of things. </p> <h3>Testing instructions</h3> <p>Repeat the following at both mobile and desktop widths.<br> Test in Chromium, Firefox, and Safari</p> <ol> <li>Ensure that text input gains focus after opening.</li> <li>Check for any console errors</li> <li>Verify that the <code>aria-expanded</code> attribute is toggled when the drawer is opened/closed</li> </ol>
issue