mapbox / mapbox-gl-directions

Directions plugin for mapbox-gl-js using Mapbox Directions API.
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/
ISC License
238 stars 123 forks source link

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

Open mariusa opened 4 years ago

mariusa commented 4 years ago
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: https://github.com/mapbox/mapbox-gl-directions/pull/226

Berkmann18 commented 3 years ago

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 commented 2 years ago

how fix this problem ?