-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
wso2/carbon-apimgt
#5003Labels
type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
When you set the primary color runway in ThemeOptions, the contrast color stops working.
Expected Behavior
contrast should stay white.
Current Behavior
contrast becomes rgba(0, 0, 0, 0.87).
Steps to Reproduce (for bugs)
const theme: ThemeOptions = {
palette: {
primary: green,
},
};
- Set
primaryto any color runway.
Context
The color system in material-ui-next is already very confusing... ThemeOptions.primary => color="primary", ThemeOptions.secondary => color="accent" (you should really consider renaming that), ThemeOptions.text.secondary => color="secondary", and I'm still lost as to how default and inherit work. Please fix this!
Your Environment
| Tech | Version |
|---|---|
| Material-UI | npm:material-ui@next |
| React | ^15.4.2 |
| browser | Chrome |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: bugIt doesn't behave as expected.It doesn't behave as expected.

