Skip to content

fix(loading-overlay): raise tooltip z-index above backdrop#32

Merged
hoangsonww merged 2 commits into
masterfrom
feat/jwt-polling-loading-ux
May 23, 2026
Merged

fix(loading-overlay): raise tooltip z-index above backdrop#32
hoangsonww merged 2 commits into
masterfrom
feat/jwt-polling-loading-ux

Conversation

@hoangsonww
Copy link
Copy Markdown
Owner

MUI Tooltip's Popper portals to body with z-index 1500, which renders beneath the overlay's 9999 backdrop — the free-tier explainer was appearing behind the blur. Pin the popper's z-index to 10000.

MUI Tooltip's Popper portals to body with z-index 1500, which renders
beneath the overlay's 9999 backdrop — the free-tier explainer was
appearing behind the blur. Pin the popper's z-index to 10000.

Co-authored-by: David Nguyen <hoangson091104@gmail.com>
@hoangsonww hoangsonww added this to the v1.0.0 - Stable Release milestone May 23, 2026
@hoangsonww hoangsonww self-assigned this May 23, 2026
Copilot AI review requested due to automatic review settings May 23, 2026 06:08
@hoangsonww hoangsonww added the bug Something isn't working label May 23, 2026
@hoangsonww hoangsonww added documentation Improvements or additions to documentation duplicate This issue or pull request already exists enhancement New feature or request good first issue Good for newcomers question Further information is requested labels May 23, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented May 23, 2026

Deploy Preview for budget-management-system canceled.

Name Link
🔨 Latest commit cd2cb01
🔍 Latest deploy log https://app.netlify.com/projects/budget-management-system/deploys/6a1144aba39c3900090502fc

@vercel
Copy link
Copy Markdown

vercel Bot commented May 23, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
budget-management-backend-api Ignored Ignored May 23, 2026 6:09am

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the LoadingOverlay component by migrating componentsProps to slotProps and adding a specific zIndex to the popper. The review feedback highlights that the hardcoded zIndex value of 10000 is a magic number and suggests using a shared constant or the theme's z-index scale to ensure better maintainability and avoid stacking conflicts.

componentsProps={{
slotProps={{
popper: {
sx: { zIndex: 10000 },
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The z-index value 10000 is a magic number. While it correctly ensures the tooltip appears above the backdrop (which is set to 9999 at line 63), hardcoding these values can lead to 'z-index wars' and maintenance challenges as the application grows. Consider defining a shared constant for the overlay's base z-index and deriving related values from it, or using the theme's z-index scale to manage stacking orders more predictably.

Updated the README to enhance the project description and formatting.

Signed-off-by: dav nguyxn <hoangson091104@gmail.com>
@hoangsonww hoangsonww merged commit e6a422a into master May 23, 2026
4 of 5 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the loading overlay’s tooltip layering so the free-tier explainer renders above the overlay backdrop while the app is in a loading state.

Changes:

  • Updates the MUI Tooltip configuration to set the Popper z-index above the overlay backdrop.
  • Migrates the tooltip customization from componentsProps to slotProps while adding the popper styling.

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

Comment on lines +98 to +101
slotProps={{
popper: {
sx: { zIndex: 10000 },
},
Repository owner deleted a comment from nizar969 May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation duplicate This issue or pull request already exists enhancement New feature or request good first issue Good for newcomers question Further information is requested

Projects

Development

Successfully merging this pull request may close these issues.

3 participants