Skip to content

Fix dark mode switch responsiveness#96

Merged
amrabed merged 1 commit into
mainfrom
fix-dark-mode-switch-responsiveness-1047180901251550173
Jun 30, 2026
Merged

Fix dark mode switch responsiveness#96
amrabed merged 1 commit into
mainfrom
fix-dark-mode-switch-responsiveness-1047180901251550173

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

The dark mode switch in the footer was not responding to clicks because it was missing the required Switch.Content wrapper for custom children in HeroUI v3. This PR wraps the Switch.Control and its children in Switch.Content, restoring the toggle functionality.

Verification:

  • Ran pnpm exec tsc --noEmit to ensure type safety.
  • Ran pnpm exec vitest run src/contexts/contexts.test.tsx to verify theme logic.
  • Performed frontend verification using Playwright, confirming that the switch toggles the dark class on the html element.

PR created automatically by Jules for task 1047180901251550173 started by @amrabed

HeroUI v3 (React Aria Components) requires custom children within a
Switch to be wrapped in Switch.Content to ensure click/tap interactions
are correctly captured. This fixes the issue where the dark mode switch
was not responsive.
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
amrabed-github-io Ready Ready Preview, Comment Jun 30, 2026 1:03pm

@amrabed amrabed marked this pull request as ready for review June 30, 2026 13:29
@amrabed amrabed merged commit a205c7c into main Jun 30, 2026
6 checks passed
@amrabed amrabed deleted the fix-dark-mode-switch-responsiveness-1047180901251550173 branch June 30, 2026 13:31
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.

1 participant