Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

add disabled as prop to support visibilty modes of tooltip #300

Merged
merged 5 commits into from
Aug 2, 2023

Conversation

sbatel
Copy link
Collaborator

@sbatel sbatel commented Jul 27, 2023

What this PR does

this change is needed to prevent situations like this -
image
we would like to hide the tooltip when the popover is open (the tooltip wraps the button the is wrapped by the popover)

Support the ability to disable/enable tooltip (control visibility).
similar to bootstrap's tooltip disable prop -> https://getbootstrap.com/docs/4.0/components/tooltips/#tooltipdisable

Screenshots & Recordings

Screen-Recording-2023-07-27-at-3.07.36-PM.mp4

How it does that

Added the 'disabled' prop (default value is false) that effects the Tip's style (visibility: visible/hidden)

In addition I edited the Active story to reflect better what exactly it does.

Screen-Recording-2023-07-27-at-3.11.25-PM.mp4

Tests

Add unit tests to the component on file Tip.test.tsx

@sbatel sbatel marked this pull request as ready for review July 27, 2023 12:14
@sbatel sbatel requested review from a team as code owners July 27, 2023 12:14
@juliewongbandue
Copy link
Collaborator

Hey @sbatel can you add unit tests for this component as well?

@sbatel sbatel requested a review from juliewongbandue July 30, 2023 14:08
Copy link
Collaborator

@juliewongbandue juliewongbandue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small nit!

@sbatel sbatel requested a review from juliewongbandue August 1, 2023 07:38
@sbatel sbatel temporarily deployed to development August 2, 2023 09:13 — with GitHub Actions Inactive
@sbatel sbatel merged commit 5a59b05 into main Aug 2, 2023
@sbatel sbatel deleted the CEWK-3065-tip-disabled-prop branch August 2, 2023 12:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants