Skip to content

Frontend: Card docs, MobileMockup a11y, Features test, Navbar focus trap - #1135

Merged
ogazboiz merged 3 commits into
LabsCrypt:mainfrom
nanlebenthel-web:feat/issues-1031-1030-1029-1028
Aug 3, 2026
Merged

Frontend: Card docs, MobileMockup a11y, Features test, Navbar focus trap#1135
ogazboiz merged 3 commits into
LabsCrypt:mainfrom
nanlebenthel-web:feat/issues-1031-1030-1029-1028

Conversation

@nanlebenthel-web

Copy link
Copy Markdown
Contributor

Test plan

  • npx vitest run for touched/added test files (Features, Navbar, useModalDialog) — all pass
  • npx eslint on changed files — clean
  • Full npx vitest run — 184 tests pass; 2 pre-existing failures unrelated to this change (src/lib/dashboard.ts and src/hooks/useIncomingStreams.test.ts have pre-existing syntax errors on main, out of scope here)
  • Manual check of mobile menu Escape/focus-trap behavior in browser

Closes #1031
Closes #1030
Closes #1029
Closes #1028

nanlebenthel-web and others added 3 commits July 29, 2026 17:48
…nents

- docs(ui): document Card behavior notes in UI_COMPONENTS.md, verified
  against Card.tsx's actual prop signature
- fix(MobileMockup): expose the CSS/SVG phone illustration as a single
  accessible unit via role="img" + aria-label, hide decorative inner
  nodes from assistive tech (component has no raster image/next/image
  asset to add alt text or sizes to)
- test(Features): add render coverage asserting all three feature
  titles and card count
- fix(Navbar): wire the mobile menu through useModalDialog for focus
  trap and Escape-to-close; hamburger button aria-expanded already
  reflected menu state

@ogazboiz ogazboiz 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.

good set of small improvements: the MobileMenu focus trap correctly reuses the existing useModalDialog hook, aria-hidden on decorative layers with a descriptive role=img label is proper a11y, and the Features test plus Card docs check out. merging. if you want to keep contributing, join us on Telegram: https://t.me/+DOylgFv1jyJlNzM0

@ogazboiz
ogazboiz merged commit f71359b into LabsCrypt:main Aug 3, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment