Skip to content

Commit

Permalink
Fix non-interactive upload container being given a button role and …
Browse files Browse the repository at this point in the history
…tabIndex (mastodon#25462)
  • Loading branch information
ClearlyClaire committed Jun 16, 2023
1 parent b276b3b commit c9d06d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class Upload extends ImmutablePureComponent {
const y = ((focusY / -2) + .5) * 100;

return (
<div className='compose-form__upload' tabIndex={0} role='button'>
<div className='compose-form__upload'>
<Motion defaultStyle={{ scale: 0.8 }} style={{ scale: spring(1, { stiffness: 180, damping: 12 }) }}>
{({ scale }) => (
<div className='compose-form__upload-thumbnail' style={{ transform: `scale(${scale})`, backgroundImage: `url(${media.get('preview_url')})`, backgroundPosition: `${x}% ${y}%` }}>
Expand Down

0 comments on commit c9d06d1

Please sign in to comment.