Based on changes in #220, data-mode could be applied to any container, not just the document root. However, the ThemeProvider transition suppression currently only watches document.documentElement.
This works for our current Storybook use case, where nested themes are static, but it may not be sufficient if we later support components that switch between light and dark mode independently (for example, code editors or previews).
Task
- Review whether transition suppression should also support nested
data-mode containers.
- Decide whether the current behaviour is sufficient or should be extended.
Based on changes in #220,
data-modecould be applied to any container, not just the document root. However, theThemeProvidertransition suppression currently only watchesdocument.documentElement.This works for our current Storybook use case, where nested themes are static, but it may not be sufficient if we later support components that switch between light and dark mode independently (for example, code editors or previews).
Task
data-modecontainers.