diff --git a/packages/react-devtools-shared/src/devtools/constants.js b/packages/react-devtools-shared/src/devtools/constants.js index 5c90501d70f5c..d093a798bcd30 100644 --- a/packages/react-devtools-shared/src/devtools/constants.js +++ b/packages/react-devtools-shared/src/devtools/constants.js @@ -154,8 +154,8 @@ export const THEME_STYLES: {[style: Theme | DisplayDensity]: any, ...} = { '--color-warning-text-color': '#ffffff', '--color-warning-text-color-inverted': '#fd4d69', - '--color-suspense': '#0088fa', - '--color-transition': '#6a51b2', + '--color-suspense-default': '#0088fa', + '--color-transition-default': '#6a51b2', '--color-suspense-server': '#62bc6a', '--color-transition-server': '#3f7844', '--color-suspense-other': '#f3ce49', @@ -315,8 +315,8 @@ export const THEME_STYLES: {[style: Theme | DisplayDensity]: any, ...} = { '--color-warning-text-color': '#ffffff', '--color-warning-text-color-inverted': '#ee1638', - '--color-suspense': '#61dafb', - '--color-transition': '#6a51b2', + '--color-suspense-default': '#61dafb', + '--color-transition-default': '#6a51b2', '--color-suspense-server': '#62bc6a', '--color-transition-server': '#3f7844', '--color-suspense-other': '#f3ce49', diff --git a/packages/react-devtools-shared/src/devtools/views/Components/InspectedElementSuspendedBy.js b/packages/react-devtools-shared/src/devtools/views/Components/InspectedElementSuspendedBy.js index 9078d3c3beabc..78c137deaf37c 100644 --- a/packages/react-devtools-shared/src/devtools/views/Components/InspectedElementSuspendedBy.js +++ b/packages/react-devtools-shared/src/devtools/views/Components/InspectedElementSuspendedBy.js @@ -22,6 +22,8 @@ import OwnerView from './OwnerView'; import {meta} from '../../../hydration'; import useInferredName from '../useInferredName'; +import {getClassNameForEnvironment} from '../SuspenseTab/SuspenseEnvironmentColors.js'; + import type { InspectedElement, SerializedAsyncInfo, @@ -181,7 +183,12 @@ function SuspendedByRow({ > )}
-