Skip to content

RG-2272 Tooltip: hide flag#9226

Merged
aleksei-berezkin merged 2 commits intomasterfrom
RG-2272-hide-tooltip
Mar 10, 2026
Merged

RG-2272 Tooltip: hide flag#9226
aleksei-berezkin merged 2 commits intomasterfrom
RG-2272-hide-tooltip

Conversation

@aleksei-berezkin
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a hide flag to the Tooltip component to allow consumers to disable tooltip display without removing/changing the title.

Changes:

  • Introduces hide?: boolean in TooltipProps and centralizes “should show” logic via Tooltip.isShow.
  • Updates lifecycle / event handling to add/remove listeners and prevent showing when hide is set.
  • Adds a unit test for the hide behavior and a Storybook example (plus story CSS cleanup).

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

File Description
src/tooltip/tooltip.tsx Adds hide prop and uses it to gate listener registration and popup display.
src/tooltip/tooltip.test.tsx Adds a test ensuring the popup is hidden when hide is enabled.
src/tooltip/tooltip.stories.tsx Replaces inline padding styles with CSS modules and adds a “hide control” story.
src/tooltip/tooltip.stories.css Adds shared padding utility classes for Tooltip stories.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aleksei-berezkin aleksei-berezkin merged commit 697dea1 into master Mar 10, 2026
3 checks passed
@aleksei-berezkin aleksei-berezkin deleted the RG-2272-hide-tooltip branch March 10, 2026 13:30
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.

3 participants