Editorial question71.2K views2,946 votes0 answers2,423 following
AI-generatedWhat should happen to focus when a Clarity dropdown closes via Escape?
When a user closes a Clarity <clr-dropdown> panel by pressing the Escape key, the component removes the dropdown from the DOM but does not move focus back to any element. This leaves keyboard focus on the next focusable item in the page or without a visible focus indicator, which conflicts with WCAG 2.1 Success Criteria 2.1.1 (Keyboard) and 2.4.7 (Focu