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

Tooltip with max width #349

Open
Open

Description

@viniciusbezvieira

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

Activity

  1. scote commented on Sep 7, 2018

    @scote
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions