From 361fd2e4a029b97287958109552dbe38472c0026 Mon Sep 17 00:00:00 2001 From: Vital Kr Date: Mon, 31 Aug 2015 20:53:40 +0500 Subject: [PATCH 1/2] [TextField] added ability to customize style of multiline textfield Added ability to use ```inputStyle``` property for customizing inner textarea element style when ```multiLine={true}``` --- src/text-field.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-field.jsx b/src/text-field.jsx index ba2a3e706afdaf..e9d1025556c41e 100644 --- a/src/text-field.jsx +++ b/src/text-field.jsx @@ -296,7 +296,7 @@ let TextField = React.createClass({ {...inputProps} rows={rows} onHeightChange={this._handleTextAreaHeightChange} - textareaStyle={this.mergeAndPrefix(styles.textarea)} /> + textareaStyle={this.mergeAndPrefix(styles.textarea, this.props.inputStyle)} /> ) : ( Date: Tue, 1 Sep 2015 08:41:51 +0500 Subject: [PATCH 2/2] added inputStyle property description --- docs/src/app/components/pages/components/text-fields.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/src/app/components/pages/components/text-fields.jsx b/docs/src/app/components/pages/components/text-fields.jsx index 825e3baefb0158..32160d4ed22769 100644 --- a/docs/src/app/components/pages/components/text-fields.jsx +++ b/docs/src/app/components/pages/components/text-fields.jsx @@ -115,6 +115,12 @@ let TextFieldsPage = React.createClass({ header: 'optional', desc: 'Override the inline-styles of the TextField\'s underline element when focussed.' }, + { + name: 'inputStyle', + type: 'object', + header: 'optional', + desc: 'Override the inline-styles of the TextField\'s input (textarea) element.' + }, { name: 'type', type: 'string',