Material-ui: [DialogTitle]Any way to change the DialogTitle (h2) style?

Created on 23 May 2018  路  3Comments  路  Source: mui-org/material-ui

When applying style to the classes attribute using the root key, it can't work since the component create an h2 tag internaly with a black color (the color injected thought the root key is applied to its parent).

  • [x] This is a v1.x issue (v0.x is no longer maintained).
  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When injecting a color to the DialogTitle component (though the classes.root property or a JSS className), i need it to not be overrided.

Current Behavior

When injecting a color to the DialogTitle component (though the classes.root property or a JSS className), it is applied to the parent but an h2 tag with a black color overrides it.

Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | v1.0.0 |

Dialog question

Most helpful comment

You can use the disableTypography property and provide your own.

All 3 comments

You can use the disableTypography property and provide your own.

I missed this attribute ! Thanks !

Thank you. I was also facing the same problem. disableTypography attribute resolved it.

Was this page helpful?
0 / 5 - 0 ratings