From 0eaf4a554c86a825e4ab364ebbc8d9d6725e2ba1 Mon Sep 17 00:00:00 2001 From: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com> Date: Tue, 8 Oct 2024 18:26:11 -0700 Subject: [PATCH] nbsps --- .../material/migration/migration-v4/v5-style-changes.md | 6 +++--- packages/mui-styles/README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/data/material/migration/migration-v4/v5-style-changes.md b/docs/data/material/migration/migration-v4/v5-style-changes.md index 6c2a042aa4876f..f911d0554cb063 100644 --- a/docs/data/material/migration/migration-v4/v5-style-changes.md +++ b/docs/data/material/migration/migration-v4/v5-style-changes.md @@ -579,7 +579,7 @@ You can import it from the deprecated `@mui/styles` package if you need to conti ### ✅ Update `makeStyles` import -Since Material UI v5 doesn't use JSS, the JSS-based `makeStyles` utility is no longer exported by `@mui/material/styles`. +Since Material UI v5 doesn't use JSS, the JSS-based `makeStyles` utility is no longer exported by `@mui/material/styles`. While migrating your app away from JSS, you can temporarily import this deprecated utility from `@mui/styles/makeStyles` before refactoring your components further. Make sure to add a `ThemeProvider` at the root of your application, as the `defaultTheme` is no longer available. @@ -619,7 +619,7 @@ You can import it from the deprecated `@mui/styles` package if you need to conti ### styled -Since Material UI v5 doesn't use JSS, the JSS-based `styled` utility exported by `@mui/material/styles` has been replaced with an equivalent Emotion-based utility that's not backwards compatible. +Since Material UI v5 doesn't use JSS, the JSS-based `styled` utility exported by `@mui/material/styles` has been replaced with an equivalent Emotion-based utility that's not backwards compatible. While migrating your app away from JSS, you can temporarily import the JSS-based utility from the deprecated `@mui/styles` package before refactoring your components further. Make sure to add a `ThemeProvider` at the root of your application, as the `defaultTheme` is no longer available. @@ -662,7 +662,7 @@ You can import it from the deprecated `@mui/styles` package if you need to conti ### ✅ Update withStyles import -Since Material UI v5 doesn't use JSS, the JSS-based `withStyles` utility is no longer exported by `@mui/material/styles`. +Since Material UI v5 doesn't use JSS, the JSS-based `withStyles` utility is no longer exported by `@mui/material/styles`. While migrating your app away from JSS, you can temporarily import this deprecated utility from `@mui/styles/withStyles` before refactoring your components further. Make sure to add a `ThemeProvider` at the root of your application, as the `defaultTheme` is no longer available. diff --git a/packages/mui-styles/README.md b/packages/mui-styles/README.md index dfeb3be5953921..36f17bd6e44eff 100644 --- a/packages/mui-styles/README.md +++ b/packages/mui-styles/README.md @@ -1,6 +1,6 @@ # @mui/styles -The legacy styling solution for Material UI, now deprecated and not recommended for use. +The legacy styling solution for Material UI, now deprecated and not recommended for use. ## Installation