I am attempting to override the CSS of Muidrawer-paper. It works locally after running "npm start", but it does not take effect when building the package.
.css-12i7wg6-MuiPaper-root-MuiDrawer-paper {
position: absolute !important;
top: 50px !important;
outline: 0;
left: 10px !important;
max-width: 35px;
padding-right: 35px !important;
background: color-mix(in srgb, #D8D8D8, transparent 18%) !important;
}
Locally:
CSS takes effect.
After building the package:
The CSS is not being applied.
Why isn't my CSS taking effect in the build package?
The CSS should remain consistent both locally and in the build package when the React application is running.
Header.js
...Header.css
...App.js:
...App.css:
...