Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip backgrounds only span the first line of text. #2205

Closed
hans-pragt opened this issue Dec 13, 2016 · 1 comment · Fixed by #2472
Closed

Tooltip backgrounds only span the first line of text. #2205

hans-pragt opened this issue Dec 13, 2016 · 1 comment · Fixed by #2472
Assignees

Comments

@hans-pragt
Copy link

hans-pragt commented Dec 13, 2016

Bug, feature request, or proposal:

When the text of a tooltip spans multiple lines, only the first line will have a background.

What is the expected behavior?

The tooltip background is behind all lines of text.

What is the current behavior?

The tooltip background is only behind the top line of text.

What are the steps to reproduce?

http://plnkr.co/edit/GKaAf1dfZWqa3cWC0pSy?p=preview

Mouse over the button in the right of the toolbar.

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

Material 2.0.0 alpha 11, Chrome 54.0.2840.99 m

Is there anything else we should know?

The link to the recommended plunkr in the issue template uses alpha 10, which does not have the wrapping behavior for tooltips.

@crisbeto crisbeto self-assigned this Dec 30, 2016
crisbeto added a commit to crisbeto/material2 that referenced this issue Dec 30, 2016
Switches the tooltip from having a hard-coded height to using `padding` and `font-size` to achieve the same height, while allowing the text to wrap. Technically the same could've been achieved by using `min-height`, instead of `height`, however since it was using `line-height` to center the text, multi-line text didn't look too good.

Fixes angular#2205.
@kara kara closed this as completed in #2472 Jan 5, 2017
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants