Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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?

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 temporarily deployed to development August 2, 2023 09:13 — with GitHub Actions Inactive
@sbatel sbatel merged commit 5a59b05 into main Aug 2, 2023
7 checks passed
@sbatel sbatel deleted the CEWK-3065-tip-disabled-prop branch August 2, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants