Skip to content

Custom theme colors breaking MuiButton in Material UI v6 #43810

@sprietNathanael

Description

@sprietNathanael

Steps to reproduce

Link to live example: not working with Material UI v6 but working with Material UI v5.

Steps:

  1. Create a custom palette colors
  2. Apply it on an Icon Button to check it works
  3. Apply it on a Button, this does not work

Current behavior

The color is not applied and the hover effect is broken

Expected behavior

The color should be applied and the hover effect working

Context

Add a custom color to the theme's palette and apply it to a button

Your environment

No response

Search keywords: theme colors button

Metadata

Metadata

Assignees

Labels

component: buttonThis is the name of the generic UI component, not the React module!customization: themeCentered around the theming featurespriority: importantThis change can make a differenceregression 🐛A bug, but worsev6.x

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions