Browse Source

Run slightly less afoul of accessibility checks. #294.

This makes the clickable element an interactive element, but doesn't add
alt text and makes it not-obvious that you can click the elefriend.  On
one hand, this goes against good practice; on the other hand, it's not
*supposed* to be obvious that you can click the elefriend.
closed-social-glitch-2
David Yip 6 years ago
parent
commit
756a9cd139
No known key found for this signature in database GPG Key ID: 7DA0036508FCC0CC
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/features/drawer/index.js
  2. +2
    -0
      app/javascript/flavours/glitch/styles/components/drawer.scss

+ 1
- 1
app/javascript/flavours/glitch/features/drawer/index.js View File

@ -101,7 +101,7 @@ class Drawer extends React.Component {
<DrawerAccount account={account} />
<div {...innerDrawerAttrs}>
<Composer />
{multiColumn && <div className='mastodon' onClick={onClickElefriend} role='button' />}
{multiColumn && <button className='mastodon' onClick={onClickElefriend}/>}
</div>
<DrawerResults
results={results}

+ 2
- 0
app/javascript/flavours/glitch/styles/components/drawer.scss View File

@ -65,6 +65,8 @@
.mastodon {
flex: 1;
border: none;
cursor: inherit;
}
}

Loading…
Cancel
Save