Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No selectedEmoji prop #452

Open
AceBlazer opened this issue Feb 25, 2025 · 0 comments
Open

No selectedEmoji prop #452

AceBlazer opened this issue Feb 25, 2025 · 0 comments

Comments

@AceBlazer
Copy link

AceBlazer commented Feb 25, 2025

i wanted to change the background style of the selected emoji, but i didn't find a selectedEmoji or activeEmoji prop

i tried this solution but it changes the style for all pickers present in the page (because i have the pickers inside a map() in jsx for each message)

<EmojiPicker onEmojiClick={handleEmojiClick} open={showEmojiPicker} reactionsDefaultOpen reactions={["2764-fe0f", "1f44d", "1f973", "1f914", "1f44e", "1f621"]} emojiStyle={EmojiStyle.FACEBOOK} /> {selectedEmoji && ( <style> {
.epr-btn[data-unified="${selectedEmoji}"] {
background-color: #e0e0e0 !important;
border-radius: 50px;
}
} </style> )}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant