Skip to content

docs(upgrade-guide): add Vite overlay stacking and layer order caveats#22848

Draft
johnleider wants to merge 1 commit into
masterfrom
docs/upgrade-guide-vite-layers
Draft

docs(upgrade-guide): add Vite overlay stacking and layer order caveats#22848
johnleider wants to merge 1 commit into
masterfrom
docs/upgrade-guide-vite-layers

Conversation

@johnleider
Copy link
Copy Markdown
Member

@johnleider johnleider commented May 11, 2026

Summary

Two real-world v3→v4 migration issues that aren't currently documented in the upgrade guide, sourced from a production migration.

  • Vite dev-mode overlay z-index — Vite's dep pre-bundler can split Vuetify's overlay modules across two module graphs, creating two useStack instances. The result is overlays rendered inside dialogs stay at z-index 2000 instead of auto-stacking. Documents the symptom, root cause, and fix (optimizeDeps.include + cache clear). Production builds are not affected.

  • Layer order declaration import timing — The @layer order statement must be imported before any Vuetify styles, or the browser establishes layer priority from first-seen order. Documents the correct entrypoint pattern and explains the failure mode.

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