Closed noah-eigenfeld closed 2 years ago
Makes the setLoading callback optional on the HtmlView component. Also adds style to the list of tags being removed by DomPurify when Html is rendered. This should prevent global styles from leaking into the rest of the application.
setLoading
HtmlView
style
A future task intends to do a better job with style handling, and should make user documents retain some of their style without leakage: https://github.ibm.com/Watson-Discovery/disco-issue-tracker/issues/12210
n/a
no
What do these changes do/fix?
Makes the
setLoading
callback optional on theHtmlView
component. Also addsstyle
to the list of tags being removed by DomPurify when Html is rendered. This should prevent global styles from leaking into the rest of the application.A future task intends to do a better job with style handling, and should make user documents retain some of their style without leakage: https://github.ibm.com/Watson-Discovery/disco-issue-tracker/issues/12210
How do you test/verify these changes?
n/a
Have you documented your changes (if necessary)?
n/a
Are there any breaking changes included in this pull request?
no