Skip to content

fix(dashboard): Add clickable backdrop overlay to mobile sidebar#450

Open
adityai0 wants to merge 5 commits into
braidpool:devfrom
adityai0:fix/mobile-sidebar-backdrop
Open

fix(dashboard): Add clickable backdrop overlay to mobile sidebar#450
adityai0 wants to merge 5 commits into
braidpool:devfrom
adityai0:fix/mobile-sidebar-backdrop

Conversation

@adityai0

Copy link
Copy Markdown

Description

This PR adds a clickable, semi-transparent backdrop overlay (bg-black/50) behind the mobile navigation sidebar in the dashboard header.

Why it's needed

Previously, when the sidebar was opened on mobile devices, there was no overlay to dim the background content, and users could not tap outside the sidebar to dismiss it. This forced users to precisely tap the small X button to close the menu. The new backdrop dims the background and allows users to intuitively close the sidebar by tapping anywhere outside of it, matching standard mobile UX patterns.

Changes Made

  • Added a z-[9998] backdrop div in dashboard/src/components/common/Header.tsx that renders when sidebarOpen is true.
  • Bound the onClick handler of the backdrop to setSidebarOpen(false).

Video

Screen.Recording.2026-04-25.144315.mp4

Copilot AI review requested due to automatic review settings April 25, 2026 09:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a tappable backdrop overlay behind the dashboard’s mobile sidebar to dim background content and allow dismissing the sidebar by tapping outside it.

Changes:

  • Render a fixed bg-black/50 backdrop when sidebarOpen is true.
  • Close the mobile sidebar when the backdrop is clicked.
  • Minor formatting adjustments to some className template literals.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dashboard/src/components/common/Header.tsx
@adityai0 adityai0 force-pushed the fix/mobile-sidebar-backdrop branch from d598e2f to 04309f8 Compare April 25, 2026 09:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dashboard/src/components/common/Header.tsx
Comment thread dashboard/src/components/common/Header.tsx
@adityai0

Copy link
Copy Markdown
Author

Hi @priyashuu @zaidmstrr, can you review my PR?

@priyashuu

Copy link
Copy Markdown
Contributor

Hi @priyashuu @zaidmstrr, can you review my PR?

Thank you for your contributions! I will review them shortly.

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.

4 participants