I’m creating a Design System/UI Kit where I also want to add the data-intercom-target to each element/component of the DS/UI Kit, to make it easy for other colleagues to create Product Tours in our app but selecting a specific element in the page, instead of using a CSS class (which is a bit hard atm).
Since I’m considering keeping the data-intercom-target generic for each element/component (i.e. every Primary button will have a <button data-intercom-target="primary-button" ...>
, I want to know if this is possible or if will cause any constrains.
Namely, if a page has several elements with the same data-intercom-target (like, 10 Secondary buttons), if I select one on my product tour, will all of them be selected? Or will the product tour break, since it finds 9 other with the same data target? Or will Intercom just select a specific “secondary button” (that happens to have the same data target as the other buttons) and ignore the other?
Thanks in advance!
TL;DR: Can I use same data-intercom-target labels on elements on the same page without breaking the product tour? Or each data target label should be unique?