Remove “No emoji found” hover [Close #59]

release
Etienne Lemay 2017-04-18 11:07:43 -04:00
parent ebd3c6f6f0
commit b1d5c70bd2
3 changed files with 9 additions and 0 deletions

View File

@ -104,6 +104,9 @@
background-color: #f4f4f4;
border-radius: 100%;
}
.emoji-mart-no-results .emoji-mart-emoji:hover:before {
content: none;
}
.emoji-mart-category-label {
z-index: 2;

View File

@ -137,6 +137,9 @@ export default class Category extends React.Component {
{...emojiProps}
size={22}
emoji='sleuth_or_spy'
onOver={null}
onLeave={null}
onClick={null}
/>
<span className='emoji-mart-no-results-label'>

View File

@ -40,6 +40,7 @@ export default class Emoji extends React.Component {
}
handleClick(e) {
if (!this.props.onClick) { return }
var { onClick } = this.props,
emoji = this.getSanitizedData()
@ -47,6 +48,7 @@ export default class Emoji extends React.Component {
}
handleOver(e) {
if (!this.props.onOver) { return }
var { onOver } = this.props,
emoji = this.getSanitizedData()
@ -54,6 +56,7 @@ export default class Emoji extends React.Component {
}
handleLeave(e) {
if (!this.props.onLeave) { return }
var { onLeave } = this.props,
emoji = this.getSanitizedData()