neomjs / neo

The application worker driven frontend framework
https://neomjs.com
MIT License
2.83k stars 151 forks source link

tooltip.Base: singleton mode => honor nested themes #5698

Open tobiu opened 1 month ago

tobiu commented 1 month ago

@ExtAnimal

right now, the tooltip is a direct child of the viewport => using the top-level theme.

since we can nest themes, the tooltip needs to check if the target has an own theme and if not walk up the vdom or dom tree to check for neo-theme-x css selectors. use the closest match.