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.
signup-info-prompt
David Yip 2018-01-14 05:07:08 -06:00
parent e64cc311dd
commit 756a9cd139
No known key found for this signature in database
GPG Key ID: 7DA0036508FCC0CC
2 changed files with 3 additions and 1 deletions

View File

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

View File

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