-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TextField] Fix width issue #6096
Conversation
}, | ||
input: { | ||
margin: 10, | ||
}, | ||
largeInput: { | ||
margin: 10, | ||
width: 300, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would omit largeInput
here and use the same input
class. Add it to the outer: { width: 300 }
to the outermost <div/>
, it would better prove that the width fills the given space.
00a2f3a
to
97f18dc
Compare
ref={(c) => { this.focusInput = c; }} | ||
className={classes.input} | ||
value="Large input" | ||
className={classNames(classes.input, classes.large)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
className={classes.input}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, I must have something different in my app, you are right with your original code.
value="Error" | ||
className={classes.input} | ||
/> | ||
<div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
className={classes.large}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might rename large
to outerContainer
97f18dc
to
8ce1749
Compare
Closes #5834.