Skip to content

feat: ApiCard context menu (#253)#328

Merged
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
whitezaddy:feature/api-context-menu
Jun 29, 2026
Merged

feat: ApiCard context menu (#253)#328
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
whitezaddy:feature/api-context-menu

Conversation

@whitezaddy

Copy link
Copy Markdown
Contributor

Closes #253

Description

This PR resolves #253 by extending the ApiCard component with an accessible, responsive right-click and touch-emulated long-press custom context action menu.

Core Changes

  • Accessible Menu Layout: Created src/components/ContextMenu.tsx adhering to WCAG 2.1 AA benchmarks, featuring full keyboard navigation traps (Escape handler dismiss) and screen-reader role="menu" attributes.
  • Breakpoint Controls: Implemented desktop cursor mapping via onContextMenu alongside mobile touchscreen emulation timers tracking onTouchStart/onTouchEnd bounds.
  • Token Consistency: Styled containers natively using existing semantic background design tokens ensuring effortless adaptation across light and dark system color modes.

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Other

Checklist

  • I have read the contributing guidelines
  • I have tested my changes locally (verified focused menu element tests pass)
  • My code follows the project's coding standards

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@whitezaddy 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

@greatest0fallt1me greatest0fallt1me merged commit f4e8a01 into CalloraOrg:main Jun 29, 2026
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.

Add accessible context menu for ApiCard

2 participants