Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

135
Views
Backdrop not dimming for Material UI's Modal after applying transform css property to modal

I am using Material UI's modal to render content. It works great. However, after applying css of transform: 'translate(-50%, -50%)', on my modal, the background dimming look doesnt work anymore. By default it does dim the background behind the modal. Been searching online to see if anyone else has encountered this issue but no one seems to have asked this question before. Please see my code below. Thanks.

Modal

<Modal
       className={classes.modal}
       open={openModal}
       onClose={() => setOpenModal(false)}
       onBackdropClick={() => setOpenModal(false)}>
        <Paper>
         {modalType === 'Buy' && renderBuywModal()}
        </Paper>
    </Modal>

Modal CSS

  modal: {
    top: '50%',
    left: '50%',
    right: 'auto',
    bottom: 'auto',
    transform: 'translate(-50%, -50%)',
    padding: 0,
    border: 'none',
    width: '60%'
  },
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!