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 with max width #349

Open
viniciusbezvieira opened this issue Sep 2, 2018 · 1 comment
Open

Tooltip with max width #349

viniciusbezvieira opened this issue Sep 2, 2018 · 1 comment

Comments

@viniciusbezvieira
Copy link

Is your feature request related to a problem? Please describe.
Medium texts for tooltip

Describe the solution you'd like
A propriety "max-width" for tooltip component

<button mz-button mz-tooltip
  [tooltip]="'Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos, e vem sendo utilizado desde o século XVI.'"
  [max-width]="200">
  Tooltip
</button>

Additional context
Feature exemple

My actual workaround is change the class .material-tooltip in styles.scss

@scote
Copy link
Contributor

scote commented Sep 7, 2018

We will not implement max-width since MaterializeCSS does not have this property for the tooltip.
You can look at this for a CSS workaround :
https://stackoverflow.com/questions/34088495/how-to-fix-the-size-of-the-container-of-the-tooltip-in-materialize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants