Skip to content

Add accessible toggle component and update layouts - #139

Merged
therealjhay merged 3 commits into
Betta-Pay:mainfrom
cladiousdoff-glitch:feat/Add-accessible
Jun 27, 2026
Merged

Add accessible toggle component and update layouts#139
therealjhay merged 3 commits into
Betta-Pay:mainfrom
cladiousdoff-glitch:feat/Add-accessible

Conversation

@cladiousdoff-glitch

Copy link
Copy Markdown
Contributor

Closes #3
Closes #4
Closes #5
Closes #6

Implemented the remaining accessibility fix.
Added a reusable semantic switch at components/ui/toggle.tsx (line 10) with:
role="switch"
aria-checked={checked}
visible On / Off text
native button click, Space, and Enter activation
Updated the Settings notification preferences in [app/(merchant)/settings/page.tsx (line 22)](C:/Users/Marvel/BettaPay-Frontend/app/(merchant)/settings/page.tsx:22) to use boolean state and the new switch component.
I also verified the other requested a11y pieces are already present:
Skip link in app/layout.tsx (line 25)
id="main-content" and tabIndex={-1} in both merchant/admin layouts
No global :focus { outline: none !important; }; only the existing :focus-visible rule remains in app/globals.css (line 77)
Verification notes: npm.cmd run lint and npx.cmd tsc --noEmit both run, but fail on pre-existing unrelated issues in dashboard/auth tests and other pages. No reported errors point to the files changed here.

@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

@cladiousdoff-glitch is attempting to deploy a commit to the therealjhay's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@cladiousdoff-glitch 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

@therealjhay
therealjhay merged commit c403f2c into Betta-Pay:main Jun 27, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants