You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove inline styles that break plots in strict CSP setups
Support strict Content Security Policies that don't allow unsafe inline
styles by:
* Removing add/deleteRelatedStyleRule from modebar and use event
listeners to emulate the on hover behavior by setting style properties
directly on the element, which is allowed in strict CSP environments.
* Output the main/library-wide CSS rules that are inlined when the
library loads into a static CSS file so that users can include it
within their applications in an acceptable manner. This allows
`addRelatedStyleRule` calls to fail without affecting functionality.
* Provide a way to prevent `addRelatedStyleRule` from running when the
static CSS file is already included in the app to prevent superfluous
errors in console output.
* Replace inline styles from "newplotlylogo" with attribute to set the
fill color directly on the elements.
Note: The `dist/plotly.css` file will need to be added to the release
files.
Fixes#2355 Plotly uses inline CSS
0 commit comments