Material-ui: Misaligned Label on Select Component

Created on 15 Oct 2019  路  4Comments  路  Source: mui-org/material-ui


The label on the Select component is misaligned when we send the option variant=outlined.

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

Current Behavior 馃槸


When the property variant=outlined is sent to the Select component, and you also need a label the label is misaligned with respect to the borderline.
Screen Shot 2019-10-15 at 12 20 32 PM

Expected Behavior 馃


Ideally, the position of the label should be aligned with the borderline.
Screen Shot 2019-10-15 at 12 21 01 PM

Steps to Reproduce 馃暪

  1. Use the Select component
  2. Set the property variant to outlined.
  3. Use a label with the component InputLabel


https://codesandbox.io/s/stop-text-focus-navigation-zckl1

Context 馃敠

Just trying to use the select component with a label. I've been able to find a workaround changing the position of the label, but by default, the label position is misaligned.

Your Environment 馃寧

| Tech | Version |
| ----------- | ------- |
| Material-UI | v4.5.1 |
| React | 16.8.8 |
| Browser | Google Chrome |
| TypeScript | 3.3.3 |

support

Most helpful comment

I came across this issue today and the problem lies on using the outlined variant in the Select component and not in FormControl (not aware if it's unintended).

All 4 comments

馃憢 Thanks for using Material-UI!

We use GitHub issues exclusively as a bug and feature requests tracker, however,
this issue appears to be a support request.

For support, please check out https://material-ui.com/getting-started/support/. Thanks!

If you have a question on StackOverflow, you are welcome to link to it here, it might help others.
If your issue is subsequently confirmed as a bug, and the report follows the issue template, it can be reopened.

tip: check how our demos are structured.

Is it fixed already? Beacause I am still able to reproduce it

I came across this issue today and the problem lies on using the outlined variant in the Select component and not in FormControl (not aware if it's unintended).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kybarg picture kybarg  路  164Comments

gndplayground picture gndplayground  路  54Comments

garygrubb picture garygrubb  路  57Comments

Bessonov picture Bessonov  路  93Comments

sjstebbins picture sjstebbins  路  71Comments