mapbox-gl-directions icon indicating copy to clipboard operation
mapbox-gl-directions copied to clipboard

mapbox-gl-directions CSS breaks mapbox-gl-geocoder CSS

Open mariusa opened this issue 4 years ago • 2 comments

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

mariusa avatar Jun 25 '20 05:06 mariusa

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

Berkmann18 avatar Feb 27 '21 15:02 Berkmann18

how fix this problem ?

maulayyacyber avatar Sep 12 '21 12:09 maulayyacyber