Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants