Skip to content

[Select] Remove labelWidth prop #22799

Closed
@Nipodemos

Description

@Nipodemos

I am trying to use the Select component, however when I set the label to be shrinked by default, it has a strike though. It is not respecting labelWidth not label nor anything

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

When select label component is set to shrink by default, the line remains there instead of give space for the label.
image

Expected Behavior 🤔

If it is shrinked by default, it should not have the strike through

Steps to Reproduce 🕹

https://codesandbox.io/s/heuristic-kepler-vdhml?file=/src/App.js

Steps:

  1. Just open the codesandbox code and you will see the problem

Context 🔦

The design of the website demands that I have a label shrinked and a placeholder on the empty input

Your Environment 🌎

Tech Version
Material-UI v4.11.0
React 16.13.1
Browser Chrome
TypeScript no

Metadata

Metadata

Assignees

Labels

breaking changecomponent: selectThis is the name of the generic UI component, not the React module!

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions