Skip to content

Commit

Permalink
Fix a bug with pointers in automated tests
Browse files Browse the repository at this point in the history
Caused by my recent attempt to make cursor be a pointer over emojis. Now I use div instead of span to fix the issue.
  • Loading branch information
ahmad-PH committed Feb 5, 2024
1 parent 065844e commit 9e30e95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/contentScript/components/EmojiPicker/EmojiPicker.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@

#tab-renamer-extension-emoji-picker .emoji-item .emoji-wrapper {
transform: translateY(-1.5px);
pointer-events: none;
}

#tab-renamer-extension-emoji-picker .emoji-item:hover {
Expand Down
5 changes: 2 additions & 3 deletions src/contentScript/components/EmojiPicker/EmojiPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,16 @@ SearchBar.propTypes = {

const Emoji = ({ emoji, onClick }) => {
return (
<span
<div
className='emoji-item'
data-unicode={emoji.unicode}
data-shortcode={emoji.shortcode}
onClick={onClick}
>
<span className='emoji-wrapper'>
{emoji.emoji}
{/* {String.fromCodePoint(parseInt(emoji.unicode.replace("U+", ""), 16))} */}
</span>
</span>
</div>
);
}

Expand Down

0 comments on commit 9e30e95

Please sign in to comment.