Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
1 change: 1 addition & 0 deletions src/pages/Search/SavedSearchList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Search/SearchTypeMenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ function SearchTypeMenuItem({title, icon, badgeText, focused = false, onPress}:
<PressableWithoutFeedback
onPress={onPress}
accessibilityLabel={title}
role={CONST.ROLE.BUTTON}
accessibilityState={{selected: focused}}
role={CONST.ROLE.TAB}
sentryLabel={CONST.SENTRY_LABEL.SEARCH.TYPE_MENU_ITEM}
style={({hovered, pressed}) => [
styles.flexRow,
Expand Down
1 change: 1 addition & 0 deletions src/pages/settings/InitialSettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
1 change: 1 addition & 0 deletions src/pages/workspace/WorkspaceInitialPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
Loading