Skip to content

Add Close Strategy to Tooltip Component #60

@Johnkat-Mj

Description

@Johnkat-Mj

Description:

We need to enhance the tooltip component by adding a close strategy feature. This feature will allow the tooltip to be closed when clicking inside it or not, based on the user's preference.

Current Behavior:

  • The tooltip can be toggled by clicking the associated element.
  • There is no option to specify a close strategy, making it inflexible for different use cases.

Desired Behavior:

  • Add an option to set a close strategy for the tooltip.
  • The close strategy should allow:
    1. Closing the tooltip when clicking inside it.
    2. Keeping the tooltip open when clicking inside it.

Expected Behavior:

  • The tooltip should close or stay open based on the specified close strategy.

Suggested Solution:

  1. Add a configuration option to the tooltip component to specify the close strategy.
  2. Implement logic to handle the closing of the tooltip based on the chosen strategy.

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