feat(a11y): wire aria-controls + aria-activedescendant on @mention editor #636
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
PR #629's @mention dropdown is mounted to
document.body(imperativemount); it's not a child of the editor's contenteditable in the DOM. Screen-reader users have no signal that the listbox exists while focus is in the editor.Leonie FINDING-MENTION-003 on #10936.
Required
aria-controls={listboxId}when the dropdown is open.aria-activedescendant={highlightedOptionId}so screen readers announce the highlighted option without focus shift.idis stable for the lifetime of one suggestion session.<div role="option">has a stableidreferenced byaria-activedescendant.Acceptance
Reviewer rationale: Leonie on PR #629 comments #10936, #10972.