
The DrawerOverlay has 87 classes applied to it. Having more classes can affect performance negatively. None of the Drawer components use makeResetStyles which will apply the base styles into one since css class.
Also instead of additional hooks, like useDrawerBaseClassNames it's possible just to share mixins
const useDrawerRootStyles = makeStyles({
root: {
...drawerBaseStyles(),
// overrides to base styles
position: 'fixed',
top: 0,
bottom: 0,
opacity: 0,
boxShadow: '0px transparent',
transitionProperty: 'transform, box-shadow, opacity',
willChange: 'transform, box-shadow, opacity',
},
This should make it much easier to use makeResetStyles in each of the drware components
The DrawerOverlay has 87 classes applied to it. Having more classes can affect performance negatively. None of the Drawer components use
makeResetStyleswhich will apply the base styles into one since css class.Also instead of additional hooks, like
useDrawerBaseClassNamesit's possible just to share mixinsThis should make it much easier to use makeResetStyles in each of the drware components