Open marbemac opened 3 years ago
@Fox32 no rush but whenever you have a moment could you expand a bit re how you're integrating JSV (and thus mosaic) into your application? Curious to learn a bit more about your use case to help inform decision making here.
Oh also a few examples re which bits of the global CSS are causing you the most issue would be helpful as well to get an idea of the potential problems!
Good news, it's all open source. The plan is to integrate it as a viewer for json schemas in the api-docs plugin of Backstage.
I created the following PR: https://github.com/backstage/backstage/pull/5532 (now reverted, but I'm happy to reland it later). Backstage is using material UI react which is what mosaic is clashing with.
As I'm using mosaic only for the viewer I only need the styles locally. However, as you already mentioned above, this is an issue with popovers, like the select box. Maybe it would also be an option to provide it as a web component which might provide better style isolation.
any news on this ? i really dont want to include the whole mosaic styles only for this
Moving https://github.com/stoplightio/json-schema-viewer/issues/115#issuecomment-831329431 over here.
Global css reset might cause issues in consuming applications - what are our options?
--
Separate the reset css out to separate file / functions that end user would be expected to include themselves if they are not using their own reset.
Downsides are:
Option to customize reset scope somehow. This is tricky because: