fix(title): center tooltip on the trigger instead of edge-anchoring (#DS-2561)#1670
Conversation
|
Visit the preview URL for this PR (updated for commit 6e3eaa1): https://koobiq-next--prs-1670-fslq0p3r.web.app (expires Sun, 05 Jul 2026 15:15:54 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c |
There was a problem hiding this comment.
Pull request overview
This PR updates kbq-title tooltip positioning so that when the default placement (top) can’t be used, the directive falls back only to center-aligned placements (top/bottom/right/left) instead of allowing corner/edge-anchored placements (e.g. topLeft, topRight, etc.). This aligns the title tooltip visually with the trigger’s center rather than its edges.
Changes:
- Adds a default
placementPriorityforKbqTitleDirective(only when consumers haven’t providedkbqPlacementPriorityand the placement is the defaulttop). - Uses
PopUpPlacementsconstants to define the center-aligned fallback order. - Adds unit tests verifying the new default priority behavior and that explicit consumer configuration is respected.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/components/title/title.directive.ts | Sets a default center-only placementPriority for the title tooltip when using the default placement. |
| packages/components/title/title.directive.spec.ts | Adds test coverage for the new default placementPriority behavior and explicit override cases. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.