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

CSS being appended into the document eventhough Picker rendered in Shadow DOM #392

Open
ugurkellecioglu opened this issue Jan 30, 2024 · 1 comment

Comments

@ugurkellecioglu
Copy link

Hi there!

Thanks for this beautiful package :) I'm trying to use this package inside of an chrome extension. Meaning that a script that runs on a page, initializes emoji picker in a Shadow DOM.

Unfortunately the CSS of emoji picker appended into the document header.

Can we add a property so that Emoji Picker takes an optional parameter of HTMLElement, a reference, so that css will be appended there.

This would probably fix the issue :)

For now, after I initialize EmojiPicker, I will look for the style id="flairup-epr" and paste it into my shadow dom manually.

Thanks,
Ugur

@ugurkellecioglu ugurkellecioglu changed the title Support for Shadow DOM CSS being appended into the document eventhough Picker rendered in Shadow DOM Jan 30, 2024
@ealush
Copy link
Owner

ealush commented Feb 1, 2024

Hey @ugurkellecioglu, thanks for reaching out!

I think 4.7.11 should sort that out for you. Instead of storing the style tag in the head, it is now applied right next to the picker's root element:

image

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

2 participants