Fix broken 'Open File' icon color

## Issue
The removal of `svg` from `media__subtitle` in 09b689ba made the icon black.

## Fix
Both 'Open File' and 'Download' should have the same css class.
This commit is contained in:
infinite-persistence 2021-02-24 10:19:10 +08:00 committed by Sean Yesmunt
parent bf5b2370e2
commit 217ae3ecf7

View file

@ -13,7 +13,7 @@ type Props = {
fileInfo: ?FileListItem, fileInfo: ?FileListItem,
openModal: (id: string, { path: string }) => void, openModal: (id: string, { path: string }) => void,
pause: () => void, pause: () => void,
download: string => void, download: (string) => void,
costInfo: ?{ cost: string }, costInfo: ?{ cost: string },
buttonType: ?string, buttonType: ?string,
showLabel: ?boolean, showLabel: ?boolean,
@ -91,6 +91,7 @@ function FileDownloadLink(props: Props) {
return hideOpenButton ? null : ( return hideOpenButton ? null : (
<Button <Button
button={buttonType} button={buttonType}
className={buttonType ? undefined : 'button--file-action'}
title={openLabel} title={openLabel}
label={showLabel ? openLabel : null} label={showLabel ? openLabel : null}
icon={ICONS.EXTERNAL} icon={ICONS.EXTERNAL}