Select to view content in your preferred language

How to Modify Popup CSS

182
3
3 weeks ago
Lerman
by
Frequent Contributor

Hi Everyone!

When using the ArcGIS JavaScript API in AMD mode, I could modify the default Popup styles by adding the following code to my CSS file, as shown in the screenshot below:

Lerman_1-1727148052991.png

 

However, when using the ArcGIS JavaScript API in ESM mode, adding the same code to the CSS file does not take effect, as shown in the screenshot below.

Lerman_0-1727148019468.png

 

Does anyone know the reason for this? When using the ESM version, how should I modify the Popup styles to make it work? Thank you!

0 Kudos
3 Replies
Lerman
by
Frequent Contributor
 

HI, @ReneRubalcava@JoelBennett  May I have some advice, please?

0 Kudos
JoelBennett
MVP Regular Contributor

I haven't yet transitioned to ESM modules, so don't have an answer for you.   However, you might check out this post, which discusses updating Popup style via JavaScript.

0 Kudos
Lerman
by
Frequent Contributor

Okay, Thank you @JoelBennett !

0 Kudos