We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6efd223 commit ebee94aCopy full SHA for ebee94a
src/components/inputs/TextField.js
@@ -474,7 +474,8 @@ export default class TextField extends BaseInput {
474
} = this.getThemeProps();
475
const typography = this.getTypography();
476
const {lineHeight, ...typographyStyle} = typography;
477
- const color = this.getStateColor(this.props.color || this.extractColorValue());
+ // color priority is: user's color prop, then modifiers, then theme props.
478
+ const color = this.getStateColor(this.props.color || this.extractColorValue() || this.getThemeProps().color);
479
const hasRightElement = this.shouldDisplayRightButton() || rightIconSource;
480
const inputStyle = [
481
hasRightElement && this.styles.rightElement,
0 commit comments