diff --git a/src/CONST/index.ts b/src/CONST/index.ts index e8d303b1b8e18..610d1e0fbb68c 100755 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -8419,12 +8419,18 @@ const CONST = { }, SELECTION_LIST: { BASE_LIST_ITEM: 'SelectionList-BaseListItem', + SELECT_ALL: 'ListHeader-SelectAll', SPLIT_LIST_ITEM_EDIT_BUTTON: 'SplitListItem-EditButton', LIST_HEADER_SELECT_ALL: 'SelectionList-ListHeader-SelectAll', }, SELECTION_LIST_WITH_SECTIONS: { BASE_LIST_ITEM: 'SelectionListWithSections-BaseListItem', - SELECT_ALL: 'SelectionList-SelectAll', + SELECT_ALL: 'BaseSelectionListWithSections-SelectAll', + }, + WORKSPACE_DUPLICATE_SELECT_FEATURES: { + SELECT_ALL: 'WorkspaceDuplicateSelectFeatures-SelectAll', + SPLIT_LIST_ITEM_EDIT_BUTTON: 'SplitListItem-EditButton', + LIST_HEADER_SELECT_ALL: 'SelectionList-ListHeader-SelectAll', }, CONTEXT_MENU: { REPLY_IN_THREAD: 'ContextMenu-ReplyInThread', diff --git a/src/components/MoneyRequestReportView/MoneyRequestReportActionsList.tsx b/src/components/MoneyRequestReportView/MoneyRequestReportActionsList.tsx index 139e6bf33ced0..b0caf77f1486b 100644 --- a/src/components/MoneyRequestReportView/MoneyRequestReportActionsList.tsx +++ b/src/components/MoneyRequestReportView/MoneyRequestReportActionsList.tsx @@ -738,7 +738,7 @@ function MoneyRequestReportActionsList({ /> 0 && selectedTransactionIDs.length !== transactionsWithoutPendingDelete.length} onPress={() => { @@ -758,7 +758,7 @@ function MoneyRequestReportActionsList({ setSelectedTransactions(transactionsWithoutPendingDelete.map((t) => t.transactionID)); } }} - accessibilityLabel={translate('workspace.people.selectAll')} + accessibilityLabel={translate('accessibilityHints.selectAllItems')} role="button" accessibilityState={{checked: isSelectAllChecked}} dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true}} diff --git a/src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx b/src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx index d9a5630927f75..cf2098caf6aa1 100644 --- a/src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx +++ b/src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx @@ -502,7 +502,7 @@ function MoneyRequestReportTransactionList({ setSelectedTransactions(transactionsWithoutPendingDelete.map((t) => t.transactionID)); } }} - accessibilityLabel={CONST.ROLE.CHECKBOX} + accessibilityLabel={translate('accessibilityHints.selectAllTransactions')} isIndeterminate={selectedTransactionIDs.length > 0 && selectedTransactionIDs.length !== transactionsWithoutPendingDelete.length} isChecked={selectedTransactionIDs.length > 0 && selectedTransactionIDs.length === transactionsWithoutPendingDelete.length} /> diff --git a/src/components/Search/SearchList/index.tsx b/src/components/Search/SearchList/index.tsx index e89d7c3d3b519..b4edd9aa16a6c 100644 --- a/src/components/Search/SearchList/index.tsx +++ b/src/components/Search/SearchList/index.tsx @@ -539,7 +539,7 @@ function SearchList({ {canSelectMultiple && ( 0 && (selectedItemsLength !== totalItems || !hasLoadedAllTransactions)} onPress={() => { @@ -556,7 +556,7 @@ function SearchList({ ({ ({ ({ ({ 0 && selectedItems.length !== items.length} onPress={toggleAllItems} @@ -367,7 +367,7 @@ function WorkspaceDuplicateSelectFeaturesForm({policyID}: WorkspaceDuplicateForm