Repository navigation
feat(tooltip): Tooltip component with CSS Anchor Positioning (#13) - #118
Merged
Merged
Conversation
…JS fallback Hover/focus tooltip with automatic above/below placement. CSS Anchor Positioning handles layout natively on Chrome 131+ and Safari 26+; a JS fallback (useTooltipPosition) covers Firefox and older browsers by setting CSS custom properties that the @supports not block consumes. Signed-off-by: Colonel Jade <colonel.jade@proton.me>
…om properties Removes the always-present CSS transform from .dialog (previously translate(var(--drag-x), var(--drag-y)) with 0 defaults). Any CSS transform — even translate(0, 0) — creates a containing block that traps position:fixed descendants, preventing tooltips and dropdowns from escaping the dialog bounds. useDraggable now sets transform directly as an inline style only while dragging, and removes it on reset. Signed-off-by: Colonel Jade <colonel.jade@proton.me>
Wraps close, dismiss, remove, toggle, and clear buttons in Tooltip to provide visual hints for sighted users. aria-label remains on each button for screen reader users; Tooltip adds the complementary hover/focus text. Signed-off-by: Colonel Jade <colonel.jade@proton.me>
Signed-off-by: Colonel Jade <colonel.jade@proton.me>
…tip migration Replace getByTitle queries with getByRole after title attributes were replaced by Tooltip wrappers. Narrow file-input text matchers to avoid matching tooltip content. Replace non-null assertions with getByRole in form-field tests. Signed-off-by: Colonel Jade <colonel.jade@proton.me>
Signed-off-by: Colonel Jade <colonel.jade@proton.me>
Add pill radius token, status/solid variant classes, notification body, overlay input, ghost button, and fieldset reset to shared.css. Update 13 consumer modules to compose from shared classes. Fixes Badge .warning bypassing the token system. Adds reduced-motion comments documenting 0.001ms vs none rationale. Signed-off-by: Colonel Jade <colonel.jade@proton.me>
Contributor
Merge Readiness
Status: 🚀 Ready to merge — comment Updated 2026-03-16 06:20:05 UTC |
position:absolute in the @supports anchor block used the <dialog> (position:fixed) as its containing block, trapping the tooltip inside the dialog's coordinate space and causing visual clipping. Switching to position:fixed escapes that containing block entirely — anchor() coordinates are viewport-relative, which is correct since the dialog has no CSS transform at rest. Also widens dialog max-width from 32em to 40em for more comfortable reading of longer content. Signed-off-by: Colonel Jade <colonel.jade@proton.me>
coloneljade
force-pushed
the
feature/tooltip
branch
from
March 16, 2026 06:02
bcf1afb to
5ebadc8
Compare
Owner
Author
|
/merge --major |
Contributor
|
Merge bot: Merged via squash. Version: 0.26.1 → 1.0.0 (major bump) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
useTooltipPosition)position:fixeddescendants from escaping dialog boundsposition:fixedin CSS Anchor path so tooltips paint above dialog edgesmax-widthfrom 32em to 40em for more comfortable contentshared.cssFixes
Fixes #13
Test Plan
bun test