thinknum / react-tour

MIT License
5 stars 0 forks source link

Shadowdom support #12

Open vytch opened 3 years ago

vytch commented 3 years ago

Hi, I wanted to use this feature, however my app is inside a shadowdom element, any chance you could support shadow dom?

vojto commented 3 years ago

Can you tell us more about your usecase? Why is your app inside a shadowdom element?

vytch commented 3 years ago

Hi,

Yeah I work in a place which has gone for a micro-service architecture. The site has been broken into multiple mini-apps, each running inside a shadow dom element. This in order to limit the risk of miniapps conflicting with one another.

I have worked on a simpler version of the tour. In order to make it work I had to do the following changes:

Also for the highlighting I had to use the approach taken by this component: reactour. It uses a svg mask and although it does not give a lot of flexibility in terms of look it works better in the shadowdom as it does not uses sass.