Skip to content

Commit 6f59eda

Browse files
JF-Cozyzatteo
authored andcommitted
feat(Viewer): Replace toolbar download button by icon button
1 parent f631581 commit 6f59eda

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

react/Viewer/components/Toolbar.jsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { useClient } from 'cozy-client'
77

88
import withBreakpoints from '../../helpers/withBreakpoints'
99
import { makeStyles } from '../../styles'
10-
import Button from '../../deprecated/Button'
1110
import IconButton from '../../IconButton'
1211
import Icon from '../../Icon'
1312
import Typography from '../../Typography'
@@ -78,13 +77,13 @@ const Toolbar = ({
7877

7978
<div className="u-ml-auto u-ph-1">
8079
{isDesktop && (
81-
<Button
80+
<IconButton
8281
className="u-white"
83-
icon={DownloadIcon}
84-
label={t('Viewer.download')}
85-
subtle
82+
aria-label={t('Viewer.download')}
8683
onClick={() => downloadFile({ client, file, url })}
87-
/>
84+
>
85+
<Icon icon={DownloadIcon} />
86+
</IconButton>
8887
)}
8988
</div>
9089
</div>

0 commit comments

Comments
 (0)