Skip to content

md-select placeholder blends with other text. #2465

Closed

Description

@davidwilcox

Bug, feature request, or proposal:

md-select placeholder text is placed under text that occurs immediately prior.

What is the expected behavior?

Padding is built into the md-select so that the placeholder text is not placed over or under any text that comes prior.

What is the current behavior?

The placeholder attribute goes over any text that is prior to it.

What are the steps to reproduce?

Use an md-select element with a placeholder attribute.

http://plnkr.co/edit/R906XtG5GXTA4SNtQUZy?p=preview
Select "Salt Lake City" from the input element.

What is the use-case or motivation for changing an existing behavior?

It looks kind of bad the way it is where you have two things of text on top of each other. It doesn't make sense from a developer's standpoint for this to happen. It's onerous to build into each md-select padding necessary in order to make it look good.

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

@angular/core@^2.4.1
@angular/material@^2.0.0-beta.1
Ubuntu 16.04
Google Chrome browser.

Is there anything else we should know?

Nope! Great job! Thanks for your help!

Activity

  1. dahaupt commented on Dec 29, 2016

    @dahaupt

    @davidwilcox Should be fixed with this PR (#2309).

  2. peluprvi commented on Mar 13, 2017

    @peluprvi

    Select with placeholder has the same height as a text field (Material guidelines):

    image

    Material text field specs:

    image

    Edit: Related to #2124 and #2168

  3. added a commit that references this issue on Mar 13, 2017
  4. jelbourn commented on Apr 13, 2017

    @jelbourn
    Contributor

    Tracking via #2124

  5. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    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.

  6. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions