From af5da3e9fe4356577ac05b2be7f860e7e117fcab Mon Sep 17 00:00:00 2001 From: Diego Andai Date: Thu, 11 Jan 2024 13:41:04 -0300 Subject: [PATCH] [docs-infra] Use darkTheme when on dark mode for list deprecated item note --- docs/src/modules/components/ApiPage/list/ClassesList.tsx | 2 +- docs/src/modules/components/ApiPage/list/PropertiesList.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/modules/components/ApiPage/list/ClassesList.tsx b/docs/src/modules/components/ApiPage/list/ClassesList.tsx index cc499b9420e056..2452f60b77515f 100644 --- a/docs/src/modules/components/ApiPage/list/ClassesList.tsx +++ b/docs/src/modules/components/ApiPage/list/ClassesList.tsx @@ -45,7 +45,7 @@ const StyledApiItem = styled(ExpandableApiItem)( }, '&.classes-list-deprecated-item': { '& .MuiApi-item-note': { - color: `var(--muidocs-palette-warning-400, ${lightTheme.palette.warning[400]})`, + color: `var(--muidocs-palette-warning-400, ${darkTheme.palette.warning[400]})`, }, }, }, diff --git a/docs/src/modules/components/ApiPage/list/PropertiesList.tsx b/docs/src/modules/components/ApiPage/list/PropertiesList.tsx index 22192c3369c23e..6274fb252f4d3b 100644 --- a/docs/src/modules/components/ApiPage/list/PropertiesList.tsx +++ b/docs/src/modules/components/ApiPage/list/PropertiesList.tsx @@ -85,7 +85,7 @@ const StyledApiItem = styled(ExpandableApiItem)( }, '&.prop-list-deprecated-item': { '& .MuiApi-item-note': { - color: `var(--muidocs-palette-warning-400, ${lightTheme.palette.warning[400]})`, + color: `var(--muidocs-palette-warning-400, ${darkTheme.palette.warning[400]})`, }, }, },