cds-astro / aladin-lite

An astronomical HiPS visualizer in the browser
https://aladin.cds.unistra.fr/AladinLite/
GNU General Public License v3.0
103 stars 42 forks source link

fix: also add style sheet in shadow dom context #194

Closed ManonMarchand closed 2 months ago

ManonMarchand commented 2 months ago

This is related to https://github.com/cds-astro/ipyaladin/issues/113 and https://github.com/marimo-team/marimo/issues/2106 where it was identified that we don't incorporate the CSS when the widget is in a shadow DOM.

It is not tested: to be discussed when everyone is back from holidays

(also, is it the best way to grab the div? Looks ugly)