Skip to content

Commit 1340b9d

Browse files
authored
assign the aria-controls id to the top-level actionlist (#55950)
1 parent 8d77a9f commit 1340b9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/search/components/input/SearchOverlay.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ export function SearchOverlay({
650650
} else {
651651
OverlayContents = (
652652
<ActionList
653+
id="search-suggestions-list"
653654
aria-label={t('search.overlay.suggestions_list_aria_label')}
654655
showDividers
655656
className={styles.suggestionsList}
@@ -1026,7 +1027,7 @@ function renderSearchGroups(
10261027

10271028
groups.push(
10281029
<ActionList.Group key="general" data-testid="general-autocomplete-suggestions">
1029-
<ActionList.GroupHeading as="h3" tabIndex={-1} id="search-suggestions-list">
1030+
<ActionList.GroupHeading as="h3" tabIndex={-1}>
10301031
{t('search.overlay.general_suggestions_list_heading')}
10311032
</ActionList.GroupHeading>
10321033
{items}

0 commit comments

Comments
 (0)