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.
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 toPickerProps
, 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.