Skip to content

[TextField] applying style height doesn't move all the elements properly #835

@jhanink

Description

@jhanink

choosing a shorter height to collapse the space between multiple vertically listed fields doesn't reposition the label, floating text label or input correctly

<div>
        <div style={this.style}>
          <TextField
            hintText="Please enter your first name"
            floatingLabelText="First Name"
              style={{border:'1px solid green',height:'40px'}}/>
        </div>
        <div style={this.style}>
          <TextField
            hintText="Please enter your middle name"
            floatingLabelText="Middle Name"
            style={{border:'1px solid green'}}/>
        </div>
        <div style={this.style}>
          <TextField
              hintText="Please enter your last name"
              floatingLabelText="Last Name"
              style={{border:'1px solid green'}}/>
        </div>
      </div>

text-field-jh1
text-field-jh2

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions