feat: ease-tooltip — CSS-only animated tooltip component#874
Open
AjayBandiwaddar wants to merge 5 commits into
Open
feat: ease-tooltip — CSS-only animated tooltip component#874AjayBandiwaddar wants to merge 5 commits into
ease-tooltip — CSS-only animated tooltip component#874AjayBandiwaddar wants to merge 5 commits into
Conversation
ease-tooltip — CSS-only animated tooltip component
ease-tooltip — CSS-only animated tooltip componentease-tooltip — CSS-only animated tooltip component
ease-tooltip — CSS-only animated tooltip componentease-tooltip — CSS-only animated tooltip component
Contributor
✅ Submission Validation PassedAll required files ( |
3 tasks
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.
Pull Request Description
Adds
ease-tooltip— a CSS-only animated tooltip component that appears on hover and keyboard focus. Closes #[GAP1 issue number].No JavaScript required. The bubble fades in and slides 4px into position using
opacity+transformtransitions on::beforeand::afterpseudo-elements. Tooltip text lives in adata-tipattribute — zero extra markup overhead.Type of Change
Submission Checklist
submissions/examples/ease-tooltip/demo.html— self-contained, opens in browser with no serverstyle.css— raw CSS for the proposed featureREADME.md— what it does, how to use it, why it fits EaseMotion CSScore/components/Feature Description
What does this add?
A pure CSS tooltip component with 4 directional variants (top, bottom, left, right), semantic color overrides, and full keyboard accessibility via
:focus-within— all driven by--ease-*tokens with zero JavaScript.How does a developer use it?
Why does it fit EaseMotion CSS?
Tooltips are listed as Planned v1.2 in VISION.md — this submission directly delivers that milestone. The implementation follows EaseMotion's core philosophy exactly:
.ease-tooltip-bottomis self-explanatory--tooltip-bg,--tooltip-speed,--tooltip-offset,--tooltip-radius) maps to an existing--ease-*custom propertyease-slide-upandease-card-hover::before+::afterpseudo-elements on the wrapper, text fromdata-tipease-btn, icon buttons, inline text, any elementDemo
demo.htmlworks by opening directly in a browser)The demo covers 5 sections:
Browser Testing
Notes for Maintainer
.tooltip,.tooltip-bottometc. — please rename toease-tooltip,ease-tooltip-bottometc. on integration as per the naming convention--tooltip-bgCSS variable pattern means semantic color variants (ease-tooltip-danger,ease-tooltip-success) can be added with a single line each — no structural changes neededprefers-reduced-motionblock is included — transitions are disabled but the tooltip still appears/disappears so no information is ever hidden from users who need reduced motionease-accordionis a vertical inline expander — functionally and structurally different from a floating positioned tooltip