geocodeearth / autocomplete-element

A custom element for use with the Geocode Earth Autocomplete API.
https://geocode.earth
MIT License
8 stars 1 forks source link

import CSS directly and render within `<Autocomplete>` #3

Closed mxlje closed 3 years ago

mxlje commented 3 years ago

This PR uses the new esbuild-css-modules-plugin version which includes my two PRs which enable us to import the CSS directly and render it ourselves. It removes the hack to find the styles in the <head>.

With the web component being the only public API (the react component is considered private) we can simplify this process and import and render the css ourselves directly.

orangejulius commented 3 years ago

Nice! Looks like those PRs were well received and it definitely simplifies things on our end :)