We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First of all, thanks for your library mui-treasury.
I would like to change the background color of an InsetSidebar but I can't figure out how to proceed.
Here is part of my code:
<InsetContainer rightSidebar={ <InsetSidebar sidebarId={"appPageDrawer"} classes={{ paper: styles.pageDrawer }} > ... </InsetSidebar> } >
Style:
pageDrawer: { backgroundColor: "#fff", },
However, the background color seems to be overridden by a default style of the Paper component:
Then, how could I set the background color of the InsetSidebar?
The text was updated successfully, but these errors were encountered:
Can you provide the whole file? I guest it is the order of calling makeStyles
makeStyles
Sorry, something went wrong.
The file won't work as this, as I didn't include some dependencies. Archive.zip
My guest is true. You need to move style below component declaration like this
// move below get...(styled) // import style from './style'; const Header = getHeader(styled); const Content = getContent(styled); const Fullscreen = getFullscreen(styled); const InsetFooter = getInsetFooter(styled); const InsetContainer = getInsetContainer(styled); const InsetSidebar = getInsetSidebar(styled); const DrawerSidebar = getDrawerSidebar(styled); const SidebarContent = getSidebarContent(styled); const CollapseBtn = getCollapseBtn(styled); import style from './style';
Ideally, you should import style from './style'. I will create a fix version for this issue.
import style from './style'
No branches or pull requests
First of all, thanks for your library mui-treasury.
I would like to change the background color of an InsetSidebar but I can't figure out how to proceed.
Here is part of my code:
Style:
However, the background color seems to be overridden by a default style of the Paper component:
Then, how could I set the background color of the InsetSidebar?
The text was updated successfully, but these errors were encountered: