Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

192
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda