Skip to content

Input hints can only contain single-line text #3337

Closed

Description

@iliketomatoes

Bug, feature request, or proposal:

Bug/Feat/Proposal

What is the expected behavior?

As you can see in Angular Material 1, I would expect the hint text to stay below the input field even when it contains more than one line of text .

What is the current behavior?

md-hint element's content is overlapping the corresponding input field if the hint contains multi-line text, due to the CSS rules that are applied to md-hint elements by default. I.E. position:absolute and bottom: 0

What are the steps to reproduce?

Just add a multi-line text into a md-hint.

material_form

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

It'd be useful to have multi-line hints under some input field to point out several warnings in a form at the same time.

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

Angular 2.4.8
Material 2.0.0-beta.2

on latest versions of Chrome and Firefox

Is there anything else we should know?

Maybe you should reconsider the absolute positioning of the md-hint element to solve this issue.

Activity

  1. added
    P3
    on Feb 28, 2017
  2. added
    feature
    on Feb 28, 2017
  3. finalxcode commented on Mar 9, 2017

    @finalxcode

    +1

  4. jefersonestevo commented on Mar 9, 2017

    @jefersonestevo
    Contributor

    +1

  5. JosuaMeier commented on Mar 27, 2017

    @JosuaMeier

    +1

  6. finalxcode commented on Mar 28, 2017

    @finalxcode

    @mmalerba the issue has been fix?

  7. ianhatton commented on Mar 28, 2017

    @ianhatton

    +1

  8. anapanadero commented on Apr 4, 2017

    @anapanadero

    +1

  9. dahaupt commented on Apr 4, 2017

    @dahaupt

    @finalxcode This one is still in discussion but I'm sure we will see this getting fixed within the next weeks after ng-conf. The conference is most likely the reason why the team is currently not that active here on the repo.

  10. finalxcode commented on Apr 5, 2017

    @finalxcode

    @dahaupt thanks

  11. 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.

  12. locked and limited conversation to collaborators on Sep 5, 2019
  13. added
    needs: discussion
    on Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3featureneeds: discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions