Use custom appearance and arrow for select fields

This commit is contained in:
J. Ryan Stinnett 2019-01-30 16:40:53 -06:00
parent b093119d30
commit d6f55a508c
2 changed files with 21 additions and 1 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>;