Remove “No emoji found” hover [Close #59]
parent
ebd3c6f6f0
commit
b1d5c70bd2
|
@ -104,6 +104,9 @@
|
||||||
background-color: #f4f4f4;
|
background-color: #f4f4f4;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
}
|
}
|
||||||
|
.emoji-mart-no-results .emoji-mart-emoji:hover:before {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
|
||||||
.emoji-mart-category-label {
|
.emoji-mart-category-label {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
|
@ -137,6 +137,9 @@ export default class Category extends React.Component {
|
||||||
{...emojiProps}
|
{...emojiProps}
|
||||||
size={22}
|
size={22}
|
||||||
emoji='sleuth_or_spy'
|
emoji='sleuth_or_spy'
|
||||||
|
onOver={null}
|
||||||
|
onLeave={null}
|
||||||
|
onClick={null}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<span className='emoji-mart-no-results-label'>
|
<span className='emoji-mart-no-results-label'>
|
||||||
|
|
|
@ -40,6 +40,7 @@ export default class Emoji extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleClick(e) {
|
handleClick(e) {
|
||||||
|
if (!this.props.onClick) { return }
|
||||||
var { onClick } = this.props,
|
var { onClick } = this.props,
|
||||||
emoji = this.getSanitizedData()
|
emoji = this.getSanitizedData()
|
||||||
|
|
||||||
|
@ -47,6 +48,7 @@ export default class Emoji extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleOver(e) {
|
handleOver(e) {
|
||||||
|
if (!this.props.onOver) { return }
|
||||||
var { onOver } = this.props,
|
var { onOver } = this.props,
|
||||||
emoji = this.getSanitizedData()
|
emoji = this.getSanitizedData()
|
||||||
|
|
||||||
|
@ -54,6 +56,7 @@ export default class Emoji extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleLeave(e) {
|
handleLeave(e) {
|
||||||
|
if (!this.props.onLeave) { return }
|
||||||
var { onLeave } = this.props,
|
var { onLeave } = this.props,
|
||||||
emoji = this.getSanitizedData()
|
emoji = this.getSanitizedData()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue