Hello Esri Community, I'm experiencing a CSS cascade issue when integrating the ArcGIS JavaScript API with Panda CSS in my application. The problem stems from how the API at 4.34 now handles automatic style injection. (as per the latest documentation):
Current Setup:
The Problem: The ArcGIS API automatically injects its styles at runtime, which bypasses my CSS layer system. This means:
Questions:
Desired Solution: Ideally, I'd like to import ArcGIS styles into my vendor layer so they can be properly overridden by my base layer styles, maintaining predictable cascade order. Any guidance on best practices for this integration would be greatly appreciated!
Edit:
Apparently importing the styles seems to work!
@import "@arcgis/map-components/main.css" layer(vendor);
@import "@esri/calcite-components/calcite/calcite.css" layer(vendor);
@import "@arcgis/core/assets/esri/themes/light/main.css" layer(vendor);