From bc8fd8b3d4931b5d9936bf200fd7e50d455d3fe4 Mon Sep 17 00:00:00 2001 From: cn Date: Wed, 9 Dec 2020 13:48:13 +0800 Subject: [PATCH] Avoid all color changes when changing sizebar size [5426] --- docs/Theming.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/Theming.md b/docs/Theming.md index d3eb8fad8f4..f98749bce94 100644 --- a/docs/Theming.md +++ b/docs/Theming.md @@ -485,9 +485,11 @@ const MyAppBar = props => } />; You can specify the `Sidebar` width by setting the `width` and `closedWidth` property on your custom material-ui theme: ```jsx +import { defaultTheme } from "react-admin"; import { createMuiTheme } from '@material-ui/core/styles'; const theme = createMuiTheme({ + ...defaultTheme, sidebar: { width: 300, // The default value is 240 closedWidth: 70, // The default value is 55