Skip to content

Conversation

ahmed-abdat
Copy link

@ahmed-abdat ahmed-abdat commented Oct 11, 2025

Fixes #14073

Select dropdown menus are obscured by the AppHeader when opening upward in landscape mobile mode because the ReactSelect menu has z-index: 4 while the AppHeader has z-index: 30. This PR adds a new CSS variable --z-select-menu: 35 to the global z-index system and applies it to ReactSelect menu styles, placing the dropdown above the header while maintaining the established z-index hierarchy. This follows the existing pattern used in PR #13908 for the SearchBar z-index fix.

@tyteen4a03
Copy link
Contributor

This sort of fixes the issue but I think the select list should just be forced to flow downward, if it's possible.

@ahmed-abdat
Copy link
Author

Thanks @tyteen4a03! I see two options:

1. menuPlacement="bottom" (your suggestion)

  • Simpler, no z-index needed
  • But: loses intelligent positioning, risk of cut-off dropdowns in landscape

2. Enhanced z-index (current)

.field-type.select {
  // Fixes Select dropdown hidden behind AppHeader in landscape mode
  z-index: 1;
}

Which approach do you prefer? I can switch to menuPlacement="bottom" if you want simplicity over the intelligent positioning.

@ahmed-abdat ahmed-abdat force-pushed the fix/ui-select-dropdown-header branch from 8514667 to 239a5aa Compare October 15, 2025 14:12
@tyteen4a03
Copy link
Contributor

The menu should still flow upwards in some scenarios (e.g. at the bottom of the page), so I don't think we should force menu placement to always go down. But I'll let the Payload team decide on this one.

@ahmed-abdat
Copy link
Author

Thanks for the feedback @tyteen4a03! Agreed - preserving the intelligent positioning is important.
Looking forward to the team's decision.

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.

Edit view: Select dropdown obscured by header in landscape mode

2 participants