diff --git a/src/components/AnchorForAttachmentsOnly/BaseAnchorForAttachmentsOnly.js b/src/components/AnchorForAttachmentsOnly/BaseAnchorForAttachmentsOnly.js index 22f1b951c443..03f293d12f71 100644 --- a/src/components/AnchorForAttachmentsOnly/BaseAnchorForAttachmentsOnly.js +++ b/src/components/AnchorForAttachmentsOnly/BaseAnchorForAttachmentsOnly.js @@ -1,5 +1,4 @@ import React from 'react'; -import {Pressable} from 'react-native'; import {withOnyx} from 'react-native-onyx'; import PropTypes from 'prop-types'; import {propTypes as anchorForAttachmentsOnlyPropTypes, defaultProps as anchorForAttachmentsOnlyDefaultProps} from './anchorForAttachmentsOnlyPropTypes'; @@ -11,6 +10,7 @@ import fileDownload from '../../libs/fileDownload'; import addEncryptedAuthTokenToURL from '../../libs/addEncryptedAuthTokenToURL'; import {ShowContextMenuContext, showContextMenuForReport} from '../ShowContextMenuContext'; import * as ReportUtils from '../../libs/ReportUtils'; +import PressableWithoutFeedback from '../Pressable/PressableWithoutFeedback'; const propTypes = { /** Press in handler for the link */ @@ -45,7 +45,7 @@ const BaseAnchorForAttachmentsOnly = (props) => { return ( {({anchor, report, action, checkIfContextMenuActive}) => ( - { if (isDownloading) { @@ -57,6 +57,8 @@ const BaseAnchorForAttachmentsOnly = (props) => { onPressIn={props.onPressIn} onPressOut={props.onPressOut} onLongPress={(event) => showContextMenuForReport(event, anchor, report.reportID, action, checkIfContextMenuActive, ReportUtils.isArchivedRoom(report))} + accessibilityLabel={fileName} + accessibilityRole="button" > { shouldShowDownloadIcon shouldShowLoadingSpinnerIcon={isDownloading} /> - + )} );