-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NextJS apply styles only to map and not globally #14
Comments
Are you talking about the fonts specified in For reference, here is NextJS's doc about CSS styling.
|
@benelan appreciate your response. The CSS import in the styles/EsriMap.module.css does appear to be applying globally. Below are two screenshots with the Both images are un-styled text added into |
Sorry for the delay. Yeah I'm able to repro, thanks for reporting the issue. While I look into it, using :root {
font: italic small-caps bold 16px/2 cursive !important;
} Although this will override the fonts within the map as well, in case that's not your intention. It's worth trying to set fonts with !important in a class and use the class for everything except the map. I will look for a better solution though. |
When following the nextJS example, the way the css is being loaded into the module still applies the styles globally. This causes all font's on our app to become the font within that stylesheet. Do you have an example on how to only apply the styles to the map component?
The text was updated successfully, but these errors were encountered: