Skip to content

Commit

Permalink
improvement: a11y: make "download" focusable
Browse files Browse the repository at this point in the history
In `FullscreenMedia` and `FullscreenAvatar`
  • Loading branch information
WofWca committed Oct 19, 2024
1 parent 513f584 commit b5dc8c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ export default function FullscreenAvatar(
</div>
</div>
<div className='btn-wrapper no-drag'>
<div
role='button'
<button
onClick={saveAs}
className='download-btn'
aria-label={tx('save')}
Expand Down
3 changes: 1 addition & 2 deletions packages/frontend/src/components/dialogs/FullscreenMedia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,7 @@ export default function FullscreenMedia(props: Props & DialogProps) {
<div className='attachment-view'>{elm}</div>
{elm && (
<div className='btn-wrapper no-drag'>
<div
role='button'
<button
onClick={onDownload.bind(null, msg)}
className='download-btn'
aria-label={tx('save')}
Expand Down

0 comments on commit b5dc8c1

Please sign in to comment.