Skip to content

Conversation

@RivaIvanova
Copy link
Member

@RivaIvanova RivaIvanova commented Nov 4, 2025

Closes #16336

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

@RivaIvanova RivaIvanova added 🛠️ status: in-development Issues and PRs with active development on them tooltip 20.2.x labels Nov 4, 2025
@RivaIvanova RivaIvanova added ❌ status: awaiting-test PRs awaiting manual verification and removed 🛠️ status: in-development Issues and PRs with active development on them labels Nov 6, 2025
@RivaIvanova RivaIvanova requested a review from ChronosSF November 6, 2025 11:08
@ChronosSF ChronosSF requested a review from Copilot November 6, 2025 11:20
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

This PR adds configurable show/hide triggers for tooltips, replacing the previous mouse/touch event-based system with a more flexible event-driven approach.

  • Introduces showTriggers and hideTriggers properties to IgxTooltipTarget for custom event configuration
  • Replaces mouse events (mouseenter/mouseleave) with pointer events (pointerenter/pointerleave) as the new default triggers
  • Removes touch-specific event handling in favor of the generic trigger system

Reviewed Changes

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

Show a summary per file
File Description
tooltip-target.directive.ts Adds showTriggers/hideTriggers properties with dynamic event listener management using AbortController
tooltip.directive.ts Simplifies by removing constructor and touch event handling, updates to use pointer events
tooltip.common.ts Adds parseTriggers utility function and regex pattern for parsing trigger strings
tooltip.directive.spec.ts Updates tests to use new trigger system, replaces touch tests with generic trigger tests
grid-validation.spec.ts Updates test from mouseenter to pointerenter event
README.md Documents new showTriggers and hideTriggers properties
CHANGELOG.md Adds entry for new tooltip trigger features in version 20.2.0

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

20.2.x tooltip ❌ status: awaiting-test PRs awaiting manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Tooltip]: Add show/hide triggers

2 participants