Merge pull request #2540 from jryans/field-select

Use custom appearance and arrow for field selects
This commit is contained in:
Matthew Hodgson
2019-01-31 10:04:57 +01:00
committed by GitHub
8 changed files with 33 additions and 104 deletions

View File

@@ -60,7 +60,7 @@ export default class Field extends React.PureComponent {
const element = this.props.element || "input";
const fieldInput = React.createElement(element, extraProps, this.props.children);
return <div className="mx_Field">
return <div className={`mx_Field mx_Field_${element}`}>
{fieldInput}
<label htmlFor={this.props.id}>{this.props.label}</label>
</div>;