rusackas commented on pull request #11611:
URL: 
https://github.com/apache/incubator-superset/pull/11611#issuecomment-728736034


   > According to emotion's docs on the `<Global>` component:
   > 
   > > Global styles are also removed when the styles change or when the Global 
component unmounts.
   > 
   > So to get dark popovers to work without interfering with light popovers on 
the same page, we have to get `<Global>` to unmount. I guess antd is rendering 
the content even when the popover is not open, so that's strange.
   > 
   > Anyway, whatever hacks we do to make this work, we should document it and 
link to an issue on the Antd
   
   Found the trick... the Popover component supports an `overlayClassName` 
prop, which slaps a class on the div slapped into the dom. That adds the 
scoping needed for the global styles to not bleed to other popovers.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to