Skip to content

refine tooltip placement and affordance#110

Open
AugistineCreates wants to merge 2 commits into
Chronopay-Org:mainfrom
AugistineCreates:uiux/tooltip-refine
Open

refine tooltip placement and affordance#110
AugistineCreates wants to merge 2 commits into
Chronopay-Org:mainfrom
AugistineCreates:uiux/tooltip-refine

Conversation

@AugistineCreates
Copy link
Copy Markdown

This pr closes #100

Implemented a fully accessible, responsive tooltip component that replaces the previous simple hover‑click behavior.

  • Added keyboard activation (Enter/Space) and Escape key handling, with focus return to the trigger after closing.
  • Implemented touch support: taps toggle the tooltip without generating duplicate mouse events.
  • Added automatic edge‑collision detection and placement flipping between top and bottom based on available space.
  • Updated the trigger button to a larger hit area (8 × 8 px) with a clear focus ring and a larger info icon.
  • Refactored tooltip styling into reusable base and placement class strings for consistent theming.
  • Added an arrow that points correctly according to the placement (top or bottom).
  • Ensured ARIA compliance with role="tooltip" and dynamic aria-describedby.

All changes are limited to src/app/components/ui/tooltip.tsx. The component is now used in the wallet card and other UI elements without further modifications. No new dependencies were added.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@AugistineCreates Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI/UX Design] Refine the tooltip component interaction and positioning in tooltip.tsx

1 participant