question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting SlideProps for Drawer kills default classes

See original GitHub issue

The following code produces weird result on latest version:

<Drawer
  open={isModalOpen}
  anchor='left'
  type='temporary'
  onRequestClose={onMenuClose}
  ModalProps={{
    className: 'foo__modal',
    BackdropClassName: 'foo__backdrop'
  }}
  SlideProps={{
    className: 'foo__slide'
  }}
  >
    ...
</Drawer>

Compare:

default: MuiPaper-root-184 MuiPaper-shadow0-186 MuiDrawer-paper-264 MuiDrawer-paperAnchorLeft-265 MuiDrawer-paperAnchorDockedLeft-269
custom: MuiPaper-root-8 MuiPaper-shadow0-10 foo__slide

The expectation is that custom class is appended to all the regular classes.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kirill-konshincommented, Jan 30, 2018

That’s good! Less possible ways the better.

0reactions
oliviertassinaricommented, Jan 30, 2018

I don’t know what version you are using but BackdropClassName was removed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting SlideProps for Drawer kills default classes #10092
Setting SlideProps for Drawer kills default classes #10092 ... The expectation is that custom class is appended to all the regular classes.
Read more >
material-ui/core/CHANGELOG.md - UNPKG
402, - [docs] Fix anchor link to using inline vs. classes (#21151) @dandv ... 771, - [ToggleButton] Don't set default for disableRipple prop...
Read more >
front-end/node_modules/@material-ui/styles/CHANGELOG.md
A way to get location (latitude and longitude), elevation, speed and other relevant data from individual satellites from the Starlink constellation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found