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

191
Views
MUI DialogTitle element's text not contained in resized DialogTitle element

I'm trying to resize the dialog title element for a warning message, however I am getting odd behavior, and unsure what causes it.enter image description here

Login Error is meant to be within the dark-blue element of the screen. And while I managed to resize the text, I am not sure why it is displaced outside what the DialogTitle element is. Here's some code, maybe someone can advise me on what's wrong:

        <div>
            <Dialog open={this.props.open}>
                <DialogTitle>
                    {this.props.title}
                </DialogTitle>
                <DialogContent>
                        ...
                </DialogContent>
                <DialogActions>
                        ...
                </DialogActions>
            </Dialog>
        </div>

And the override loaded via the theme is:

overrides: {
    ...,
    MuiDialogTitle: {
        root: {
            backgroundColor: "#2c9cf2",
            height: "20px",
            fontSizeAdjust: 0.4,
        },
    },

What am I missing? My understanding that the height of the DialogTitle element would encompass the items inside of it too, unless a specific override is given that matches a class inside.

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!