Skip to content
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

mapbox-gl-directions CSS breaks mapbox-gl-geocoder CSS #252

Open
mariusa opened this issue Jun 25, 2020 · 2 comments
Open

mapbox-gl-directions CSS breaks mapbox-gl-geocoder CSS #252

mariusa opened this issue Jun 25, 2020 · 2 comments

Comments

@mariusa
Copy link

mariusa commented Jun 25, 2020

import MapboxGeocoder from '@mapbox/mapbox-gl-geocoder'
import '@mapbox/mapbox-gl-geocoder/dist/mapbox-gl-geocoder.css'
import MapboxDirections from '@mapbox/mapbox-gl-directions/dist/mapbox-gl-directions'
import '@mapbox/mapbox-gl-directions/dist/mapbox-gl-directions.css'

mapbox-gl-directions CSS breaks mapbox-gl-geocoder CSS, since it overwrites the geocoder styles (it shouldn't, by design; we wouldn't have this problem now)

Wasted half an hour on this, to discover now it's a known issue since last year:
#226

@Berkmann18
Copy link

Berkmann18 commented Feb 27, 2021

Yeah, it's frustrating that it does this, I wonder why it's not name-spacing its CSS rules or using more specific selectors.

@maulayyacyber
Copy link

how fix this problem ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants