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

Allow Passing Shadow Root as Sheet Target #4309

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

joealden
Copy link

In @types/styled-components, the target prop of StyleSheetManager allows passing a ShadowRoot (see here).

As I'm not familiar with this codebase, I started from the change to IStyleSheetManager, then fixed any type errors that surfaced. @quantizor please let me know if you see any problems with what I've done here, or if you know of a reason why the ShadowRoot option wasn't carried over into v6!

Copy link
Contributor

@quantizor quantizor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Would it make sense to create an InsertionTarget type so we can DRY this up a bit?

@joealden
Copy link
Author

joealden commented May 11, 2024

@quantizor sounds good to me! Do you think it should live in /src/types.ts or /src/sheet/types.ts?

@quantizor
Copy link
Contributor

@quantizor sounds good to me! Do you think it should live in /src/types.ts or /src/sheet/types.ts?

src/types is good :)

@joealden joealden requested a review from quantizor May 12, 2024 12:43
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

Successfully merging this pull request may close these issues.

None yet

2 participants