Skip to content

feat(tooltip): add general Tooltip and rebuild InfoTooltip on it - #162

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-11941-add-a-general-tooltip-to-corbitsreact-ui
Nov 2, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-11941-add-a-general-tooltip-to-corbitsreact-ui

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Adds a general Tooltip to @corbits/react-ui/ui/tooltip that wraps a focusable child trigger element, and rebuilds InfoTooltip on top of Tooltip with zero visual change or regression.

Closes CL-11941

Changes

  • Tooltip:
    • Wraps a focusable child element (React.ReactElement) as its trigger using Radix's TooltipPrimitive.Trigger asChild.
    • Accepts label (ReactNode), side ("top" | "right" | "bottom" | "left"), delay (defaults to 200ms), sideOffset (defaults to 6px), defaultOpen, open, onOpenChange, and className.
    • Accessible: keyboard focus opens the tooltip, aria-describedby links trigger to content, Escape closes it.
  • InfoTooltip:
    • Rebuilt as a composite of Tooltip wrapping the standard <InfoIcon> button trigger.
    • 100% backwards-compatible props and identical rendered output/styling.
  • Documentation & Stories:
    • Updated stories/primitives/tooltip.stories.tsx with examples of general Tooltip triggers (Button variants), placement sides, and rich labels alongside existing InfoTooltip stories.
    • Documented Tooltip in README.md controls table.
    • scripts/agent-references.mjs automatically documents Tooltip in skills/react-ui/references/controls.md.

Verification

  • bun run check: typecheck (0 errors), oxlint (0 errors), oxfmt (clean), and unit tests pass.
  • bun run dep-guard: clean (no leaks to root barrel; client boundaries match).
  • bun run contrast-test: all pairs pass in light and dark.
  • bun run build: successful compilation, CSS emission, and references generation.
  • bun test ./e2e/exports.test.ts ./e2e/contrast.test.ts: passes.

@linear-code

linear-code Bot commented Nov 2, 2026

Copy link
Copy Markdown

CL-11941

@corbits-triage

corbits-triage Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

Triage will approve.

Changed since the last verdict (Fail at 95cc5a4): 1 new commit.

@corbits-triage corbits-triage Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Triage requests changes:

  • CI green: required checks are failing

- Export general Tooltip wrapping a focusable trigger element
- Support custom label (ReactNode), side, delay, sideOffset, and open
  state
- Rebuild InfoTooltip on top of Tooltip with identical rendered output
  and props
- Add unit tests for Tooltip and update Storybook stories and README

Closes CL-11941
@TheGreatAxios
TheGreatAxios force-pushed the cl-11941-add-a-general-tooltip-to-corbitsreact-ui branch from 95cc5a4 to 3325314 Compare November 2, 2026 04:08
@corbits-triage
corbits-triage Bot dismissed their stale review November 2, 2026 04:16

Nothing triage asked to change still fails, so this request no longer stands.

@TheGreatAxios
TheGreatAxios merged commit 2235934 into main Nov 2, 2026
3 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-11941-add-a-general-tooltip-to-corbitsreact-ui branch November 2, 2026 04:20
TheGreatAxios added a commit that referenced this pull request Nov 2, 2026
Bump @corbits/react-ui from 0.5.0 to 0.5.1 for general Tooltip (#162).

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant