forked from treehouse/mastodon
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
parent
e64cc311dd
commit
756a9cd139
|
@ -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}
|
||||
|
|
|
@ -65,6 +65,8 @@
|
|||
|
||||
.mastodon {
|
||||
flex: 1;
|
||||
border: none;
|
||||
cursor: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue