Material-ui: TextField styling has changed

Created on 24 Sep 2018  路  10Comments  路  Source: mui-org/material-ui

The TextField is acting differently in v3.1.1 compared to prior versions. Look at the downshift > Select multiple countries example:

screen shot 2018-09-24 at 23 55 52

  • [x] This is not a v0.x issue.
  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I would expect the TextField to be to the right of the chips and we wrapped only if it doesn't fit to the right anymore.

Current Behavior

The TextField is wrapped on a second line after a first selection.

Steps to Reproduce

Link: https://material-ui.com/demos/autocomplete/

  1. Go to the downshift example
  2. Select a country in the second input field

Context

Visually broke the multi-select component.

Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | v3.1.1 |
| Chrome | v69 |

bug 馃悰 TextField

All 10 comments

Maybe related... I'm also noticing alignment issues in the endAdornment property/component of the <Input /> component. I have a <InputAdornment position='end' /> adornment with 2 <IconButton /> elements. In v3.1.1 the buttons are now misaligned:

image

In previous versions - or at least up through v3.0.1 - the alignment is fine. I'm also using Chrome v69.

@hburrows Do you have a reproduction?

What @hburrows describes might be related to #12988.

In previous versions - or at least up through v3.0.1 - the alignment is fine. I'm also using Chrome v69.

It was fine in 3.1.0, but broken in 3.1.1

keep_pipelines_as_trials_that_expire_unless_payment_begins

3.1.1 also affects styling of outlined fields (with and without labels).
password

textfield

https://material-ui.com/demos/text-fields/#outlined

12975 broke the downshift select example. Without width: 100% the example lookes like 3.1.0.

I am also running into the strike-through problem that @katzoo described on 3.1.1
screenshot:
image

I retract my issue. It turned out I had some legacy CSS that was causing my issue -- likely due to CSS changes related to this. Removing my CSS altogether fixed my issue.

@katzoo What environment are you using to see this?

password

I have noticed it too on my Oneplus 6 on Chrome 69, but it's an indeterministic rendering artifact. We would have to fall back to the SVG implementation of @enagy27 to completely remove it. At the cost of a higher bundle size?

@oliviertassinari I can only see this only in Chrome (stable 69.0.3497.100 as well as dev 71.0.3565.0), but maybe it's somehow related to how Chrome handles OS upscaling (125% for 4k resolution) - especially when changing page zoom (in browser) once makes this glitch disappear (I've seen worse regressions in "stable" versions :) ). Couldn't reproduce this in Firefox or any other machine with Chrome stable, so it seems like non material-ui issue.

The other thing went away with 3.1.2, so thank you and @slipo for fixing this :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mb-copart picture mb-copart  路  3Comments

activatedgeek picture activatedgeek  路  3Comments

rbozan picture rbozan  路  3Comments

FranBran picture FranBran  路  3Comments

anthony-dandrea picture anthony-dandrea  路  3Comments