components icon indicating copy to clipboard operation
components copied to clipboard

Placeholder text not displaying for matInput

Open AryanJ-NYC opened this issue 8 years ago • 3 comments

Bug, feature request, or proposal:

I followed the matInput documentation and my placeholder disappears.

What is the expected behavior?

The placeholder should appear in the input and above the input when a value is inside the input. screen shot 2018-05-15 at 9 04 25 pm

What is the current behavior?

The placeholder is blank and only displays when animating or input is focused:

screen shot 2018-05-15 at 9 05 10 pm

AND

screen shot 2018-05-15 at 9 05 17 pm

Please note that the gap to the left of the password input should be the username input.

What are the steps to reproduce?

StackBlitz

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

@angular: 6.02
@angular/material: 6.0.2
typescript: 2.7.2

Mac OS 10.13.4

AryanJ-NYC avatar May 16 '18 01:05 AryanJ-NYC

@AryanJ-NYC It looks like you are using the purple-green prebuilt them, since this (and the pink-bluegrey) are 'dark themes' if you change your background color to a darker color you should be able to see your inputs. I have attached an image from your Stackblitz link as illustration. screen shot 2018-05-26 at 11 40 46 am

okeefem2 avatar May 26 '18 15:05 okeefem2

Closing as this is working as expected. In your stackblitz you provided you can see that the placeholders are there, however they are not visible since they are white text with the white page background.

josephperrott avatar May 30 '18 21:05 josephperrott

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.