Skip to content

PROD-9557 - ReadyLaunch: In Activity post form mentions dropdown hide behind the modal#4879

Open
amincdev wants to merge 1 commit intoreleasefrom
PROD-9557
Open

PROD-9557 - ReadyLaunch: In Activity post form mentions dropdown hide behind the modal#4879
amincdev wants to merge 1 commit intoreleasefrom
PROD-9557

Conversation

@amincdev
Copy link
Copy Markdown
Contributor

@amincdev amincdev commented Jan 23, 2026

Jira Issue:

https://buddyboss.atlassian.net/browse/PROD-9557

General Note

Keep all conversations related to this PR in the associated Jira issue(s). Do NOT add comment on this PR or edit this PR’s description.

Notes to Developer

  • Ensure the IDs (i.e. PROD-1) of all associated Jira issues are reference in this PR’s title
  • Ensure that you have achieved the Definition of Done before submitting for review
  • When this PR is ready for review, move the associate Jira issue(s) to “Needs Review” (or “Code Review” for Dev Tasks)

Notes to Reviewer

  • Ensure that the Definition of Done have been achieved before approving a PR
  • When this PR is approved, move the associated Jira issue(s) to “Needs QA” (or “Approved” for Dev Tasks)

@amincdev amincdev self-assigned this Jan 23, 2026
@claude
Copy link
Copy Markdown

claude bot commented Jan 23, 2026

Claude finished @amincdev's task —— View job


Code Review Complete

Reviewing PR PROD-9557 - ReadyLaunch: In Activity post form mentions dropdown hide behind the modal

Todo List:

  • Read repository guidelines (CLAUDE.md)
  • Analyze all changed files to understand the z-index fix
  • Review CSS changes for code quality and best practices
  • Check for potential bugs or issues
  • Assess performance implications
  • Evaluate security considerations
  • Provide comprehensive feedback with specific suggestions

Code Review Summary

Change Analysis

The PR fixes a z-index layering issue where mentions dropdown (.atwho-container .atwho-view) was appearing behind modal overlays in ReadyLaunch Activity post forms. The fix increases z-index from 999989 to 999999 across 9 files (4 CSS, 4 minified CSS, 1 SCSS source).

Code Quality Assessment

Strengths

  1. Consistent Changes: All 9 files updated uniformly with same z-index value
  2. Targeted Fix: Only affects the specific problematic selector
  3. Maintains Build Process: Both source SCSS and compiled CSS files updated
  4. Clear Problem Statement: PR title clearly describes the issue being fixed

⚠️ Areas of Concern

  1. Magic Number Usage (src/bp-templates/bp-nouveau/readylaunch/css/sass/base/_utilities.scss:1772)

    • Issue: Using hardcoded z-index: 999999 instead of CSS variable
    • Existing Pattern: Line 201 correctly uses z-index: var(--bb-rl-z-index-popover) (value: 1060)
    • Recommendation: Use consistent CSS variable approach:
    // Instead of:
    z-index: 999999;
    
    // Consider:
    z-index: var(--bb-rl-z-index-modal); // if modal-level priority needed
    // or create new variable for mentions over modal
  2. Inconsistent Layering Strategy

    • Issue: 999999 is extremely high and breaks the established z-index hierarchy
    • Context: CSS variables define logical layers (popover: 1060, modal: 1050, etc.)
    • Risk: Future z-index conflicts with other high-priority elements
  3. Architecture Concern

    • Root Cause: Should investigate why mentions dropdown has lower priority than modal backdrop
    • Better Solution: Might be to render mentions dropdown as direct child of modal rather than increasing z-index

Performance & Security

  • Performance: Minimal impact - simple CSS property change
  • Security: No security implications in z-index changes
  • Browser Compatibility: z-index values work across all browsers

Recommendations

High Priority

  1. Use CSS Variables: Replace magic number with documented z-index variable
  2. Define New Z-Index Level: If mentions-over-modal is needed, create proper CSS variable:
    :root {
      --bb-rl-z-index-mention-modal: 1065; // Above popover, below tooltip
    }

Medium Priority

  1. Investigate Root Cause: Consider if DOM structure changes could avoid high z-index
  2. Document Decision: Add comment explaining why this high z-index is necessary
  3. Test Edge Cases: Verify no conflicts with other high z-index elements (tooltips, etc.)

Low Priority

  1. Consider Scope: Verify fix doesn't affect mention dropdowns in non-modal contexts

Verdict

Conditionally Approve - The fix addresses the immediate problem but should implement proper z-index management using CSS variables for maintainability.


@amincdev amincdev changed the title PROD-9557 - ReadyLaunch: In Activity post form mentions dropdown hide behind the modal PROD-9557 - ReadyLaunch: In Activity post form mentions dropdown hide behind the modal Jan 23, 2026
@amincdev amincdev changed the title PROD-9557 - ReadyLaunch: In Activity post form mentions dropdown hide behind the modal PROD-9557 - ReadyLaunch: In Activity post form mentions dropdown hide behind the modal Jan 23, 2026
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