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:
parent
bf5b2370e2
commit
217ae3ecf7
1 changed files with 2 additions and 1 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue