Add changeset

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2023-05-05 16:40:57 +02:00
parent 0b03f31735
commit 20b7da6f13
2 changed files with 25 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
---
'@backstage/app-defaults': minor
'@backstage/test-utils': minor
'@backstage/theme': minor
'@backstage/plugin-techdocs-addons-test-utils': patch
'@backstage/cli': patch
---
**MUI v5 Support:** Adding platform-wide support for MUI v5 allowing a transition phase for migrating central plugins & components over. We still support v4 instances & plugins by adding a
To allow the future support of plugins & components using MUI v5 you want to upgrade your `AppTheme`'s to using the `UnifiedThemeProvider`
```diff
Provider: ({ children }) => (
- <ThemeProvider theme={lightTheme}>
- <CssBaseline>{children}</CssBaseline>
- </ThemeProvider>
+ <UnifiedThemeProvider theme={builtinThemes.light} children={children} />
),
```
**'@backstage/test-utils':** Test App Wrapper is using `UnifiedThemeProvider` for tests now.
**'@backstage/plugin-techdocs-addons-test-utils':** Fix avoiding test to run on unmount.
**'@backstage/cli':** Enforcing MUI v5 specific linting to minimize bundle size.
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { Theme } from '@mui/material';
import { Theme } from '@mui/material/styles';
import { transformV5ComponentThemesToV4 } from './overrides';
describe('transformV5ComponentThemesToV4', () => {