primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
8.77k stars 1.09k forks source link

`zIndex` not taken into account e.g. between Menubar and Sidebar #4965

Open tmlmt opened 6 months ago

tmlmt commented 6 months ago

Reopening of issue #4552

Describe the bug

Menu dropdowns stay below Sidebar despite setting zIndex to have menus or overlays above modals (not sure which category menu dropdowns belong to)

app.use(PrimeVue, {
  ripple: true,
  zIndex: {
    modal: 1100, //dialog, sidebar
    overlay: 1200, //dropdown, overlaypanel
    menu: 1200, //overlay menus
    tooltip: 1100, //tooltip
  },
});

image

Reproducer

https://codesandbox.io/p/sandbox/goofy-shamir-tmm3nv

PrimeVue version

3.43.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

Tested on Chromium 120 and Firefox 120

Steps to reproduce the behavior

In the reproducer:

  1. Click on "Open Sidebar"
  2. Click on the Menu to open the dropdown

Expected behavior

The Menu dropdown should be above the Sidebar

mertsincan commented 5 months ago

Thanks a lot for the report! I set a milestone for it. We'll check before the milestone is released.