forgejo/web_src/js/features/comp
Henry Catalini Smith bfebd42a3d Fix @mention combobox semantics for screen reader accessibility (#11860)
Fixes https://codeberg.org/forgejo/forgejo/issues/7668.

This was simpler to fix than my theory I posted on https://codeberg.org/forgejo/forgejo/issues/7668 about needing to patch the upstream package. When testing in Firefox with the developer console open and warnings enabled, I noticed a `Empty string passed to getElementById()` warning coming from `@github/combobox-nav` while attempting to manage the `aria-activedescendant` attribute. Then I found this in the [README for that project](https://github.com/github/combobox-nav).

> Markup requirements:
> - Each option needs to have role="option" and a unique id

This was easy to miss, as we're using `@github/text-expander-element` and the combobox-nav package is one of _its_ dependencies. Without a unique ID on each dropdown menu item, `@github/text-expander-element` is unable to set an appropriate `aria-activedescendant` attribute on the textarea. Once that's in place, the screen reader announcements come to life beautifully.

While working on it I noticed the emoji picker combobox was affected by the same problem and patched that as well.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11860
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: Henry Catalini Smith <henry@catalinismith.se>
Co-committed-by: Henry Catalini Smith <henry@catalinismith.se>
2026-04-01 00:14:47 +02:00
..
ComboMarkdownEditor.js fix(ui): add dynamic aria-label to monospace button in markdown editor (#8244) 2025-12-22 13:59:50 +01:00
ConfirmModal.js Change green buttons to primary color (#27099) 2023-09-18 22:05:31 +00:00
EasyMDEToolbarActions.js s/Gitea/Forgejo in various log messages and comments 2024-04-21 21:26:15 +05:00
LabelEdit.js feat: move more modals to native dialogs (#9636) 2025-10-13 17:48:49 +02:00
Paste.js fix(ui): Add pasted images to dropzone 2025-06-30 12:42:22 +02:00
QuickSubmit.js Remove jQuery from the "quick submit" handler (#29200) 2024-02-17 23:24:31 +01:00
ReactionSelector.js chore: enable no-jquery/no-sizzle 2025-04-01 03:58:09 +02:00
SearchUserBox.js Add DISABLE_ORGANIZATIONS_PAGE and DISABLE_CODE_PAGE settings for explore pages and fix an issue related to user search (#32288) 2024-10-27 11:27:40 +01:00
TextExpander.js Fix @mention combobox semantics for screen reader accessibility (#11860) 2026-04-01 00:14:47 +02:00
WebHookEditor.js Implement CSS-only input toggling, refactor related forms 2024-08-21 15:03:19 +02:00