Skip to content

Conversation

@cspath1
Copy link
Contributor

@cspath1 cspath1 commented Nov 3, 2025

Description

When the toolbar is mounted, it loads all of it's related styling into the document.head. From there, we copy that and place all toolbar styles into the Shadow DOM it is hosted in. However, we were not cleaning up those styles, so they were causing issues in gonfalon where styling would be inadvertently overriden.

What does this PR do?

Have mount.tsx clean up styling after placing it in the Shadow DOM so it won't override the styling of the host application.

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)


Related Jira issue: REL-10522: Developer Toolbar overriding styles in gonfalon

@launchdarkly-upra launchdarkly-upra bot changed the title fix: update mount so it cleans up toolbar styles fix: [REL-10522] update mount so it cleans up toolbar styles Nov 3, 2025
Copy link
Contributor

@pranjal-jately-ld pranjal-jately-ld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix 🙏 🚀

@pranjal-jately-ld
Copy link
Contributor

Closing this as we've addressed the issue in the following PR - #258

@cspath1 cspath1 deleted the cspath/REL-10522-fix-styling-override-issue branch November 6, 2025 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants