diff --git a/src/components/MenuItem.tsx b/src/components/MenuItem.tsx index b4d71df7d8e1a..f97e4d996e41c 100644 --- a/src/components/MenuItem.tsx +++ b/src/components/MenuItem.tsx @@ -797,6 +797,7 @@ function MenuItem({ role={interactive ? role : undefined} accessibilityLabel={`${enhancedAccessibilityLabel}${brickRoadIndicator ? `. ${translate('common.yourReviewIsRequired')}` : ''}`} accessible={shouldBeAccessible} + accessibilityState={role === CONST.ROLE.TAB ? {selected: focused} : undefined} tabIndex={interactive ? tabIndex : -1} onFocus={onFocus} sentryLabel={sentryLabel} diff --git a/src/pages/Search/SavedSearchList.tsx b/src/pages/Search/SavedSearchList.tsx index 757696b32507b..a97e734906ea7 100644 --- a/src/pages/Search/SavedSearchList.tsx +++ b/src/pages/Search/SavedSearchList.tsx @@ -84,6 +84,7 @@ function SavedSearchList({hash}: SavedSearchListProps) { return { ...baseMenuItem, + role: CONST.ROLE.TAB, sentryLabel: CONST.SENTRY_LABEL.SEARCH.SAVED_SEARCH_MENU_ITEM, onPress: () => { setSearchContext(false); diff --git a/src/pages/Search/SearchTypeMenuItem.tsx b/src/pages/Search/SearchTypeMenuItem.tsx index cefdca795cebe..1dbdb281b0044 100644 --- a/src/pages/Search/SearchTypeMenuItem.tsx +++ b/src/pages/Search/SearchTypeMenuItem.tsx @@ -41,7 +41,8 @@ function SearchTypeMenuItem({title, icon, badgeText, focused = false, onPress}: [ styles.flexRow, diff --git a/src/pages/settings/InitialSettingsPage.tsx b/src/pages/settings/InitialSettingsPage.tsx index 53f76ffc1797f..f0ed8e7dbef77 100755 --- a/src/pages/settings/InitialSettingsPage.tsx +++ b/src/pages/settings/InitialSettingsPage.tsx @@ -470,6 +470,7 @@ function InitialSettingsPage({currentUserPersonalDetails}: InitialSettingsPagePr shouldBlockSelection={!!item.link} onSecondaryInteraction={item.link ? (event) => openPopover(item.link, event) : undefined} focused={isFocused} + role={CONST.ROLE.TAB} isPaneMenu sentryLabel={item.sentryLabel} iconRight={item.iconRight} diff --git a/src/pages/workspace/WorkspaceInitialPage.tsx b/src/pages/workspace/WorkspaceInitialPage.tsx index 310b2107e7b2f..d91edf8eeb6d8 100644 --- a/src/pages/workspace/WorkspaceInitialPage.tsx +++ b/src/pages/workspace/WorkspaceInitialPage.tsx @@ -478,6 +478,7 @@ function WorkspaceInitialPage({policyDraft, policy: policyProp, route}: Workspac wrapperStyle={styles.sectionMenuItem(shouldUseNarrowLayout)} highlighted={!!item?.highlighted} focused={!!(item.screenName && activeRoute?.startsWith(item.screenName))} + role={CONST.ROLE.TAB} badgeText={item.badgeText} shouldIconUseAutoWidthStyle sentryLabel={item.sentryLabel}