Merge pull request #1366 from fsih/inputText

Fix input css to apply only to text fields
This commit is contained in:
DD Liu authored and GitHub committed 2018-01-31 11:08:40 -05:00
commit 9163f73a26
4 files changed
+13 -7

No files matched your search

+8 -3
View File
@@ -9,14 +9,19 @@ const Input = props => {
return (
<input
{...componentProps}
className={classNames(styles.inputForm, {
[styles.inputSmall]: small
})}
className={classNames(
styles.inputForm,
props.className,
{
[styles.inputSmall]: small
}
)}
/>
);
};
Input.propTypes = {
className: PropTypes.string,
small: PropTypes.bool
};
@@ -103,3 +103,7 @@
.larger-input input {
width: 4rem;
}
.sprite-input {
width: 8rem;
}
@@ -39,6 +39,7 @@ class SpriteInfo extends React.Component {
<div className={styles.group}>
<Label text="Sprite">
<BufferedInput
className={styles.spriteInput}
disabled={this.props.disabled}
placeholder="Name"
tabIndex="0"
-4
View File
@@ -11,7 +11,3 @@ p {
font-size: 1rem;
line-height: 1.5em;
}
input {
width: 8rem;
}