-
Notifications
You must be signed in to change notification settings - Fork 4k
[Fix] Refactor st.html for style tags
#10979
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
Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
✅ PR preview is ready!
|
st.html for style tagsst.html for style tags
|
Hi @mayagbarnes first and foremost, thanks for the PR!!! I was looking from something related with the Would you mind to include in it the addition of the element in the PR? I think is an easy change (add the new element in the ElementTree class. I understand that this request is out of the scope of the PR so don't worry if you prefer not to do it! |
|
Hi @pmareke! Happy to look into adding |
sfc-gh-bnisco
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing those additional cases. LGTM!
Describe your changes
Update
st.htmlto better handle the case of<style>tags with no rendered content."display: none"for rendering) so they don't impact the layout/flow of the app which causes flickering. Other html content is still handled the same - rendered in the main/sidebar containers.stHtml-empty: Remove check inHtml.tsxfor dispalyed content & remove.stHtml-emptystyling logic on parent element container.cssfilesGitHub Issue Link (if applicable)
Closes #9388
Closes #10027
Testing Plan