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

Add styleProps prop #821

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add styleProps prop #821

wants to merge 1 commit into from

Conversation

12joan
Copy link

@12joan 12joan commented Apr 23, 2023

The style injection used in ShadowElement.tsx conflicts with content security policies that disallow inline stylesheets. To facilitate a workaround for this, this PR adds a styleProps prop to PickerProps, each key and value of which is added as a DOM attribute on the injected style element.

TypeScript seems to be disabled for most source files, so I don't know whether I've missed anything important in my implementation. I'll update this PR if I encounter any problems using the patch in production.

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

1 participant