Manviel opened a new pull request, #19717: URL: https://github.com/apache/echarts/pull/19717
## Brief Information This pull request is in the type of: - bug fixing. - refactoring. ### What does this PR do? This pull request addresses a specific limitation concerning [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP). When CSP is enabled, direct assignments to an element's style property using a string are disallowed. However it is possible to use className instead. ### Fixed issues [Tree chart with tooltips is not compliant with strict CSP directives for styles](https://github.com/apache/echarts/issues/19570) ## Details ### Before: What was the problem? CSP violation errors are thrown into browser console: <img width="793" alt="image" src="https://github.com/apache/echarts/assets/18514351/dfc2c049-05e3-4cb2-b2f9-8a2883f9594c"> ### After: How does it behave after the fixing? It no longer uses inline styles. <img width="800" alt="image" src="https://github.com/apache/echarts/assets/18514351/0327d897-11f4-4b7c-94f9-4c893513137d"> ## Document Info One of the following should be checked. - This PR doesn't relate to document changes ### ZRender Changes - [ ] No. ## Others Tried to apply a similar solution as in https://github.com/ecomfe/zrender/pull/1030 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
