Skip to content

Expose disabled prop for Tooltip, so we can conditionally render it #13052

Open
@muchisx

Description

@muchisx

Summary

There's two ways maybe I see this going

  1. Via the content (prefered)
    If content is null then it will skip rendering the Tooltip and will only render the children.

  2. Via new prop disabled
    If disabled is true then it will skip rendering the Tooltip and will only render the children

Rationale

Sometimes a tooltip is conditional to the state of the element is wrapping, or something else in the page.

A lot of times we want to add tooltips to disabled buttons to explain why they are disabled.

This becomes cumbersome as we need to do a ConditionalWrapper component that handles the rendering of the tooltip.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions