You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
Merge pull request #2540 from jryans/field-select
Use custom appearance and arrow for field selects
This commit is contained in:
@@ -97,7 +97,7 @@ export default class TopLeftMenuButton extends React.Component {
|
||||
resizeMethod="crop"
|
||||
/>
|
||||
{ nameElement }
|
||||
<img className="mx_TopLeftMenuButton_chevron" src={require("../../../res/img/topleft-chevron.svg")} width="11" height="6" />
|
||||
<span className="mx_TopLeftMenuButton_chevron"></span>
|
||||
</AccessibleButton>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user