Skip to content

Fix Codevs Filter Dropdown Z-Index Visibility fix codevs filter dropdown - #482

Merged
Jecomo-Alyssa-Lyn merged 2 commits into
devfrom
fix/codevs-filter-z-index
Dec 24, 2025
Merged

Fix Codevs Filter Dropdown Z-Index Visibility fix codevs filter dropdown#482
Jecomo-Alyssa-Lyn merged 2 commits into
devfrom
fix/codevs-filter-z-index

Conversation

@raineer24

@raineer24 raineer24 commented Dec 23, 2025

Copy link
Copy Markdown
Collaborator

PR Summary: Fix Codevs Filter Dropdown Z-Index Visibility

Branch

fix/codevs-filter-visibility-z-index

Problem

Filter dropdown in Codevs tab was rendering beneath codev member cards, making it partially or fully hidden when opened.

Root Cause

  • Filter dropdown used z-[1] which was insufficient
  • Trapped in parent stacking context
  • Codev cards had higher z-index priority

Solution

Single File Modified:

  • apps/codebility/app/home/interns/_components/FilterCodevs.tsx
Screenshot 2025-12-23 at 11 38 35 PM

Key Changes:

  1. Portal Rendering - Dropdown now renders to document.body using createPortal, escaping all parent stacking contexts
  2. Z-Index Fix - Increased to z-50 (dropdown) + z-40 (backdrop overlay)
  3. Dynamic Positioning - Calculates dropdown position relative to button using refs
  4. Click-Outside Close - Added backdrop overlay to close filter when clicking outside
  5. Dark Mode Support - Full light/dark theme consistency

Technical Details

  • Uses React createPortal for proper layering
  • Fixed positioning relative to viewport
  • Backdrop prevents interaction with page while filter is open
  • Responsive: 90vw mobile, 384px tablet, 320px desktop
Screenshot 2025-12-23 at 11 38 24 PM

Testing

  • Filter opens above codev cards
  • Click outside closes dropdown
  • All filter checkboxes functional (Position/Status/Projects)
  • Dark mode works correctly
  • Mobile responsive layout
  • "Clear all" button works

Visual Result

Filter dropdown now properly overlays all content with no visibility issues.


Ready for review @Guo-Alyssa-Lyn

@vercel

vercel Bot commented Dec 23, 2025

Copy link
Copy Markdown

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

Project Deployment Review Updated (UTC)
codebility-plus-codebility-portal Ready Ready Preview, Comment Dec 23, 2025 3:40pm

@Jecomo-Alyssa-Lyn
Jecomo-Alyssa-Lyn merged commit 74005d2 into dev Dec 24, 2025
3 checks passed
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.

2 participants