Skip to content

[Toolkit][Shadcn] Add Tooltip component#3321

Merged
Kocal merged 1 commit intosymfony:2.xfrom
Kocal:toolkit-shadcn-tooltip
Jan 29, 2026
Merged

[Toolkit][Shadcn] Add Tooltip component#3321
Kocal merged 1 commit intosymfony:2.xfrom
Kocal:toolkit-shadcn-tooltip

Conversation

@Kocal
Copy link
Member

@Kocal Kocal commented Jan 29, 2026

Q A
Bug fix? no
New feature? yes
Deprecations? no
Documentation? no
Issues Tracked in #3233
License MIT

Replace #3283

Enregistrement.de.l.ecran.2026-01-29.a.09.05.37.mov

@Kocal Kocal self-assigned this Jan 29, 2026
@carsonbot carsonbot added Deprecation Documentation Improvements or additions to documentation Feature New Feature Toolkit Status: Needs Review Needs to be reviewed labels Jan 29, 2026
@Kocal Kocal force-pushed the toolkit-shadcn-tooltip branch from a6d3996 to 3c797a6 Compare January 29, 2026 08:09
@Kocal Kocal removed Deprecation Documentation Improvements or additions to documentation labels Jan 29, 2026
@Kocal Kocal force-pushed the toolkit-shadcn-tooltip branch from 3c797a6 to 487040e Compare January 29, 2026 08:12
@Kocal Kocal requested a review from Copilot January 29, 2026 08:20
Copy link

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 a new Tooltip component to the Symfony UX Toolkit shadcn kit, replacing the previous PR #3283. The component provides hover and focus-based tooltips with customizable positioning (top, right, bottom, left) and delay duration.

Changes:

  • Added Tooltip component with Trigger and Content sub-components following the established shadcn/ui patterns
  • Implemented a Stimulus controller for tooltip positioning and show/hide behavior with delay support
  • Added multiple usage examples demonstrating different tooltip configurations
  • Updated CHANGELOG.md to document the new tooltip recipe
  • Updated Accordion component comment for consistency (capitalization)

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/Toolkit/kits/shadcn/tooltip/templates/components/Tooltip.html.twig Main tooltip wrapper component with ID and delay configuration
src/Toolkit/kits/shadcn/tooltip/templates/components/Tooltip/Trigger.html.twig Trigger sub-component that defines interaction attributes for tooltip activation
src/Toolkit/kits/shadcn/tooltip/templates/components/Tooltip/Content.html.twig Content sub-component containing tooltip body and arrow with positioning configuration
src/Toolkit/kits/shadcn/tooltip/assets/controllers/tooltip_controller.js Stimulus controller handling tooltip positioning, show/hide logic, and delay behavior
src/Toolkit/kits/shadcn/tooltip/manifest.json Component manifest defining dependencies and file structure
src/Toolkit/kits/shadcn/tooltip/examples/*.html.twig Example templates demonstrating various tooltip usage patterns
src/Toolkit/CHANGELOG.md Documents the addition of the tooltip recipe
src/Toolkit/kits/shadcn/accordion/templates/components/Accordion.html.twig Minor comment capitalization fix for consistency

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

@Kocal Kocal force-pushed the toolkit-shadcn-tooltip branch from 4d756ee to d0269ff Compare January 29, 2026 22:10
@Kocal Kocal merged commit f2e9720 into symfony:2.x Jan 29, 2026
@Kocal Kocal deleted the toolkit-shadcn-tooltip branch January 29, 2026 22:34
Kocal added a commit to symfony/ux.symfony.com that referenced this pull request Jan 29, 2026
This PR was merged into the main branch.

Discussion
----------

[Toolkit][Shadcn] Add documentation for Toolkit recipe

| Q              | A
| -------------- | ---
| Bug fix?       | no
| New feature?   | no
| Issues         | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License        | MIT

Related to symfony/ux#3321

Commits
-------

b1b5cca [Toolkit][Shadcn] Add documentation for Toolkit recipe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New Feature Status: Needs Review Needs to be reviewed Toolkit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants