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.

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