Skip to content

How to overriding default theme styles after migration to emotion #24186

Description

@Krasnopir

There reproducing
https://codesandbox.io/s/material-ui-issue-forked-t1yge

Some components stopped overriding styles, i think after migration to emotion.
For example Typography and Badge. I tried to use className and classes: { [class] }, but none of the ways works.

In devTools, I see That there are styles but their priority is lower than default theme styles.

Снимок экрана от 2020-12-30 11-11-09
Снимок экрана от 2020-12-30 11-21-37

If you try to change the version of @material-ui/core then you can see, that:
Typography stopped overriding on 5.0.0-alpha.20, and work on 5.0.0-alpha.19
Badge stopped overriding on 5.0.0-alpha.19, and work on 5.0.0-alpha.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions