diff --git a/src/components/ReportActionItem/TaskPreview.js b/src/components/ReportActionItem/TaskPreview.js index 2ddf2def5e89..182c931ebd16 100644 --- a/src/components/ReportActionItem/TaskPreview.js +++ b/src/components/ReportActionItem/TaskPreview.js @@ -1,5 +1,5 @@ import React from 'react'; -import {View, Pressable} from 'react-native'; +import {View} from 'react-native'; import PropTypes from 'prop-types'; import {withOnyx} from 'react-native-onyx'; import compose from '../../libs/compose'; @@ -17,6 +17,7 @@ import ROUTES from '../../ROUTES'; import reportActionPropTypes from '../../pages/home/report/reportActionPropTypes'; import * as TaskUtils from '../../libs/actions/Task'; import RenderHTML from '../RenderHTML'; +import PressableWithoutFeedback from '../Pressable/PressableWithoutFeedback'; const propTypes = { /** The ID of the associated taskReport */ @@ -61,9 +62,11 @@ function TaskPreview(props) { const htmlForTaskPreview = taskAssignee ? `@${taskAssignee} ${taskTitle}` : `${taskTitle}`; return ( - Navigation.navigate(ROUTES.getReportRoute(props.taskReportID))} style={[styles.flexRow, styles.justifyContentBetween]} + accessibilityRole="button" + accessibilityLabel={props.translate('newTaskPage.task')} > - + ); }