Skip to content

Cat-tooltip: add an option to disable tooltip when full content is displayed #752

Description

@glushkova91

Is your feature request related to a problem? Please describe.
Sometimes we don't want to show a tooltip for the text/button/label if the whole text is already displayed.

Describe the solution you'd like
Add the property disableWhenContentVisible (or with a better name), use ResizeObserver and element.offsetWidth < element.scrollWidth condition to calculate if the content of tooltip trigger/slot is fully visible.

Activity

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