You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Screen readers don't announce the suggestions in GWT SuggestBox popups. In the Install Packages dialog, typing a partial package name shows a list of matching packages, but a screen reader doesn't announce them, in Safari or Chrome.
The suggestions are menuitems in a popup attached to <body>, and nothing links them to the text box. Focus stays in the <input> throughout, and the input has no combobox role, aria-expanded, aria-controls, or aria-activedescendant, so assistive technology isn't told that a list is open or which item is highlighted. SuggestBox in the GWT fork sets no ARIA attributes at all.
The usual fix is the combobox pattern: role="combobox", aria-expanded, aria-controls, and aria-activedescendant on the input, with role="listbox" and role="option" in the popup. This could go in the fork's SuggestBox/DefaultSuggestionDisplay, which would cover every caller, or in RStudio's wrappers.
Seen in Install Packages (InstallPackageDialog.java#L176). These other places use SuggestBox with an oracle that returns suggestions, and likely behave the same (not checked):
Where the fix should go: the GWT fork, with only small follow-up work in RStudio.
Why the fork:
Every caller listed above uses SuggestBox.DefaultSuggestionDisplay or a subclass (SearchWidget's SearchSuggestionDisplay, AutocompleteSuggestionDisplay, PanmirrorLangSuggestBox; InstallPackageDialog uses it directly). None of the subclasses replace how the popup or its items are built, so a fork fix covers all of them, including AutocompleteComboBox in rstudio-pro.
The parts that need to change are private in the fork:
Items are built in the private SuggestionMenuItem constructor (where role="option" and an id would be set).
The highlighted item changes in the private SuggestionMenu.selectItem(), and mouse hover goes through MenuBar.itemOver. Neither passes through the protected moveSelectionUp/moveSelectionDown, which is all a subclass can hook to keep aria-activedescendant current.
MenuBar sets its own menu/menuitem roles, which the fork can change where they're set.
Why not RStudio alone: it would need a shared DefaultSuggestionDisplay subclass swapped in at every caller, rewriting roles and ids in the popup DOM after super.showSuggestions() and working out the highlighted item from CSS classes. That misses hover, breaks if the fork's DOM changes, and any future caller using a plain SuggestBox stays inaccessible.
Cost of the fork route: the patch goes on the release branch, gets a new SDK build name and a GWT_VERSION bump (see src/gwt/tools/build-gwt-README.md), and has to be carried forward to later release branches. It may also be worth offering upstream.
Remaining RStudio work: bump the GWT version, check that each caller's input has an accessible name, and spot-check that SearchSuggestionDisplay's first-mouseover suppression (SearchWidget.java) doesn't conflict with the new selection tracking.
Activity
gtritchie commentedon Oct 29, 2026
Where the fix should go: the GWT fork, with only small follow-up work in RStudio.
Why the fork:
SuggestBox.DefaultSuggestionDisplayor a subclass (SearchWidget'sSearchSuggestionDisplay,AutocompleteSuggestionDisplay,PanmirrorLangSuggestBox;InstallPackageDialoguses it directly). None of the subclasses replace how the popup or its items are built, so a fork fix covers all of them, includingAutocompleteComboBoxin rstudio-pro.SuggestionMenuItemconstructor (whererole="option"and an id would be set).SuggestionMenu.selectItem(), and mouse hover goes throughMenuBar.itemOver. Neither passes through the protectedmoveSelectionUp/moveSelectionDown, which is all a subclass can hook to keeparia-activedescendantcurrent.MenuBarsets its ownmenu/menuitemroles, which the fork can change where they're set.Why not RStudio alone: it would need a shared
DefaultSuggestionDisplaysubclass swapped in at every caller, rewriting roles and ids in the popup DOM aftersuper.showSuggestions()and working out the highlighted item from CSS classes. That misses hover, breaks if the fork's DOM changes, and any future caller using a plainSuggestBoxstays inaccessible.Cost of the fork route: the patch goes on the release branch, gets a new SDK build name and a
GWT_VERSIONbump (seesrc/gwt/tools/build-gwt-README.md), and has to be carried forward to later release branches. It may also be worth offering upstream.Remaining RStudio work: bump the GWT version, check that each caller's input has an accessible name, and spot-check that
SearchSuggestionDisplay's first-mouseover suppression (SearchWidget.java) doesn't conflict with the new selection tracking.Mark MenuBar's table body and rows presentational
Set aria-modal only on alert dialogs
Announce the highlighted tab in the tab overflow search
Clear MenuBar's aria-activedescendant when nothing is selected
Drop pending suggestions however the list is dismissed
Make only DefaultSuggestionDisplay's boxes comboboxes
Open a closed SuggestBox list with Down Arrow
Leave the box's own id out of the suggestion list's name
Keep aria-activedescendant off the SuggestBox list
Open the list with Down Arrow only for DefaultSuggestionDisplay
Ask the display whether it manages the combobox state
Don't repeat a pending request when Down Arrow opens the list
Use GWT 2.13.1-parrot-balsam-2
Answer filter-only search boxes with an empty suggestion list
Share the search-box-drives-menu ARIA wiring
Name the tab overflow menu
Use DomUtils.ensureHasId in SearchWidget.controlMenu
Fire BaseMenuBar's SelectionEvent only when the highlight moves
Test SearchWidget's combobox role and two-step Escape
Correct the comment on BaseMenuBarTests' clearing check
Announce SuggestBox suggestions to screen readers (#19658)