Keeping child windows styles in sync with parent #393
david-trumid
started this conversation in
Show and tell
Replies: 1 comment
-
to be clear the better approach is to wrap the child component in a jss or styles provider, we had to extend FloatingTab to wrap FloatingWindow with custom HOC |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using MUI and have dynamic styles that update on mounting/unmounting a component right before it is loaded into the child window. The easiest (and least code/buggy) approach we have found is to add an observer in the popout.html file in the head section like so..
this will keep the child window updated with new styles (removes are slightly more complicated because it is a clone of the root window node), and will continue to add injected styles into child window and redocking will reset it
Beta Was this translation helpful? Give feedback.
All reactions