Reading @nolan’s excellent “Shadow DOM and accessibility: the trouble with ARIA”: https://nolanlawson.com/2022/11/28/shadow-dom-and-accessibility-the-trouble-with-aria/
If you’re concerned about the drawbacks of Shadow DOM—I really encourage you to try WebC!
Compile your Shadow DOM to Light DOM to workaround these issues. With a special shout out to the `uid` property for accessibility attribute mapping too (deep link here): https://youtu.be/p0wDUK0Z5Nw?t=455