diff --git a/.changeset/shaggy-maps-whisper.md b/.changeset/shaggy-maps-whisper.md new file mode 100644 index 0000000000..d67a98373c --- /dev/null +++ b/.changeset/shaggy-maps-whisper.md @@ -0,0 +1,6 @@ +--- +'@backstage/core-components': patch +'@backstage/plugin-api-docs': patch +--- + +Replaced usages of `theme.palette.theme.hint` with `theme.palette.text.secondary` as it has been removed in MUI v5 diff --git a/packages/core-components/src/layout/Sidebar/Items.tsx b/packages/core-components/src/layout/Sidebar/Items.tsx index 96c2b382e7..924182086f 100644 --- a/packages/core-components/src/layout/Sidebar/Items.tsx +++ b/packages/core-components/src/layout/Sidebar/Items.tsx @@ -677,7 +677,7 @@ const styledScrollbar = (theme: Theme): CreateCSSProperties => ({ borderRadius: '5px', }, '&::-webkit-scrollbar-thumb': { - backgroundColor: theme.palette.text.hint, + backgroundColor: theme.palette.text.secondary, borderRadius: '5px', }, }); diff --git a/plugins/api-docs/src/components/OpenApiDefinitionWidget/OpenApiDefinition.tsx b/plugins/api-docs/src/components/OpenApiDefinitionWidget/OpenApiDefinition.tsx index c67088476b..5d5988399a 100644 --- a/plugins/api-docs/src/components/OpenApiDefinitionWidget/OpenApiDefinition.tsx +++ b/plugins/api-docs/src/components/OpenApiDefinitionWidget/OpenApiDefinition.tsx @@ -105,7 +105,7 @@ const useStyles = makeStyles(theme => ({ fontWeight: theme.typography.fontWeightRegular, }, [`& .model-hint`]: { - color: theme.palette.text.hint, + color: theme.palette.text.secondary, backgroundColor: theme.palette.background.paper, }, [`& .opblock-summary-method,