-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[BUG] - NextUI seems to break/clash with Mapbox GL JS #4297
Comments
please provide a minimal reproducible environment. |
Reproducable with ANY existing React app with Tailwind and Mapbox GL JS. Just add NextUI and the map no longer displays |
...spoke too soon <main className="dark text-foreground bg-background">
<App />
</main> It must be overriding the mapbox-gl/dist/mapbox-gl.css file I geuss :-( |
Seems I may have resolved the issue, although not sure why!?! #map-container {
width: 100%;
height: 100vh;
} ...it seems to resolve the issue. Very weird, but it works |
The provider is a component in NextUI that serves several important functions such as client-side routing, locale for internationalization, global prop control and etc. The problem could be due to some styles conflicting. Without a reproducible environment, we couldn't investigate further. |
NextUI Version
2.6.5
Describe the bug
I'm adding NextUI to my existing React project that is also using mapbox gl js and tailwind
My app works perfectly fine without NextUI, but as soon as I add the tags around my app, the mapbox map no longer displays - everything else still works fine, but the map no longer displays
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Well just add NextUI to an existing React app that also has tailwind and mapbox gl js
Expected behavior
I expect the map to still work, but it appears that NextUI overrides something in Mapbox. Mapbox uses its own css by the way...
Screenshots or Videos
No response
Operating System Version
Windows 10 pro
Browser
Chrome
The text was updated successfully, but these errors were encountered: