Let custom tooltip shadows paint outside the portal #255
main fromtaren/portal-overflow-current-1943·merged by tannerlinsley Addresses #168. The tooltip portal lets a custom card's shadow paint outside the portal surface. The card still controls its own rounded clipping. Thanks to @stybo for reporting the bug.
The renderer regression checks the portal overflow style. All 117 focused tests and the existing 146-row bundle policy passed on current main. The approved comparison fingerprint and matching docs are refreshed. The catalog generator produced 189 byte-identical SVGs, so only its source fingerprint changed. Numeric bundle limits and recorded measurements are unchanged.
The issue stays open until the fix is available in a release.
Summary by CodeRabbit#
- Bug Fixes
- Custom tooltip shadows now remain visible when tooltips appear in popovers, instead of being clipped.
- 1
No actionable comments were generated in the recent review.
Walkthrough
-
The tooltip portal now sets the tooltip element’s overflow to visible. The portaled-tooltip test checks this style. A patch changeset and benchmark and comparison records also changed.
Changes: Tooltip portal overflow
Layer / File(s) Summary Set tooltip portal overflow
packages/charts-core/src/tooltip-portal.ts,packages/charts-core/src/renderer.test.ts,.changeset/tooltip-portal-overflow.mdconfigureParentsets the tooltip element’s overflow tovisible. The portaled-tooltip test expects this value. A patch changeset describes the tooltip shadow behavior.Update comparison records
benchmarks/comparison/bundle-baseline.json,benchmarks/conformance/previews/manifest.json,docs/comparison.md,packages/charts-core/docs/comparison.mdThe benchmark revision and hashes are updated. The comparison pages identify revision 6816b34; competitor package pins remain unchanged.Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
- TanStack/charts#168: The issue describes custom tooltip portal rendering that lets the tooltip shadow paint outside the portal surface while retaining rounded clipping.
Suggested reviewers:
greglum
Merge Risk:
Minimal · up to76e93-
The tooltip shadow behavior is implemented without removing the custom card’s clipping, so the change is mergeable.
Pre-merge checks:
4 · 1-
Failed checks: 1 warningCheck name Status Explanation Resolution Docstring Coverage Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold. Passed checks: 4 passed-
Check name Status Explanation Description Check Check skipped - CodeRabbit’s high-level summary is enabled. Title check The title "Let custom tooltip shadows paint outside the portal" matches the main change in the changeset. The code change in packages/charts-core/src/tooltip-portal.ts sets the tooltip element's overf… Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Full details: Title check
-
Explanation
The title "Let custom tooltip shadows paint outside the portal" matches the main change in the changeset. The code change in packages/charts-core/src/tooltip-portal.ts sets the tooltip element's overflow style to visible in configureParent, and the test in renderer.test.ts was updated to expect that value. The PR objectives describe the same fix for issue
#168, which allows a custom tooltip card's shadow to paint outside the portal surface. The other changes are benchmark, manifest, and docs refreshes that the title does not need to cover.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 2 files. (5 skipped: 5 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
2c414e7d-acb9-46f4-97e1-7cbc4b14edb2
Commits-
Reviewing files that changed from the base of the PR and between 7be9c414ee5d4301ff35915d755caefdfe99c5a7 and 76e937d8567d7d12b54b3751f8fc0894c3176af7.
Files selected for processing: 7-
.changeset/tooltip-portal-overflow.mdbenchmarks/comparison/bundle-baseline.jsonbenchmarks/conformance/previews/manifest.jsondocs/comparison.mdpackages/charts-core/docs/comparison.mdpackages/charts-core/src/renderer.test.tspackages/charts-core/src/tooltip-portal.ts
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.
-
-
View your CI Pipeline Execution ↗ for commit 76e937d8567d7d12b54b3751f8fc0894c3176af7
Command Status Duration Result nx run charts-workspace:ci-distributed✅ Succeeded 4m 47s View ↗ nx run charts-workspace:package-check✅ Succeeded 2m 24s View ↗ nx run charts-workspace:benchmark-check✅ Succeeded 1m 7s View ↗
☁️ Nx Cloud last updated this comment at
2026-11-04 05:08:25UTCtannerlinsley merged this72e38ad
tannerlinsley closed this
Sign in to join this conversation.
🦋 Changeset detected#
Latest commit: 76e937d8567d7d12b54b3751f8fc0894c3176af7
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR