@itwin/itwinui-react 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -27,6 +27,11 @@ const useTheme = (theme, themeOptions) => {
|
|
|
27
27
|
if (!ownerDocument || isThemeAlreadySet.current) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
+
// do nothing if using v1 for the main page (incremental migration)
|
|
31
|
+
if (ownerDocument.documentElement.className.includes('iui-theme-') ||
|
|
32
|
+
ownerDocument.body.classList.contains('iui-body')) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
30
35
|
ownerDocument.body.classList.toggle('iui-root', true);
|
|
31
36
|
switch (theme) {
|
|
32
37
|
case 'light':
|
|
@@ -24,6 +24,11 @@ export const useTheme = (theme, themeOptions) => {
|
|
|
24
24
|
if (!ownerDocument || isThemeAlreadySet.current) {
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
+
// do nothing if using v1 for the main page (incremental migration)
|
|
28
|
+
if (ownerDocument.documentElement.className.includes('iui-theme-') ||
|
|
29
|
+
ownerDocument.body.classList.contains('iui-body')) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
27
32
|
ownerDocument.body.classList.toggle('iui-root', true);
|
|
28
33
|
switch (theme) {
|
|
29
34
|
case 'light':
|