Skip to content

tool tip not support on multiline #3389

Closed
@ChenReuven

Description

@ChenReuven

Bug, feature request, or proposal:

tool tip is not support on regular multiline

What is the expected behavior?

if we use the \n or the es6 string template literal(backtick ``), the break line will work

What is the current behavior?

tool tip string is not break line

What are the steps to reproduce?

put long string with /n or with back tick and see the tooltip that the words dont break lines

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

Supporting multi line is very common and important

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

2.0.0-beta.2, Latest Chrome, Windows 10

Is there anything else we should know?

One Solution for that is refactor the .mat-tooltip class, and add one more property:
.mat-tooltip {
white-space: pre-line;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions