Skip to content

Commit f61d24d

Browse files
Merge pull request mui#1989 from pandaiolo/text-field-bg
[TextField][Fix] Custom theme backgroundColor hiding hint text
2 parents f2f84df + 5239861 commit f61d24d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/text-field.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ const TextField = React.createClass({
160160
height: (props.rows - 1) * 24 + (props.floatingLabelText ? 72 : 48),
161161
display: 'inline-block',
162162
position: 'relative',
163+
backgroundColor: backgroundColor,
163164
fontFamily: this.state.muiTheme.rawTheme.fontFamily,
164165
transition: Transitions.easeOut('200ms', 'height'),
165166
},
@@ -187,7 +188,7 @@ const TextField = React.createClass({
187188
height: '100%',
188189
border: 'none',
189190
outline: 'none',
190-
backgroundColor: backgroundColor,
191+
backgroundColor: 'transparent',
191192
color: props.disabled ? disabledTextColor : textColor,
192193
font: 'inherit',
193194
},

0 commit comments

Comments
 (0)