fix(tickets): TicketViewportSelect passe au-dessus des FloatingWindow

Le popup viewport-positionné utilisait zIndex.menuDropdown (40), inférieur à
zIndex.floatingWindow (50) : il s'affichait derrière une fenêtre flottante
ouverte. Ajout de zIndex.transientPopup (65), au-dessus de floatingWindow et
floatingWindowNested, pour tout popup transitoire porté par document.body
depuis une FloatingWindow.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-28 22:37:36 +02:00
parent 6fa41013ed
commit ec305657ad
3 changed files with 9 additions and 6 deletions

View File

@ -40,7 +40,8 @@ describe("TicketViewportSelect", () => {
name: "filter by assignee",
});
expect(listbox.parentElement).toBe(document.body);
expect(listbox.style.zIndex).toBe(String(zIndex.menuDropdown));
expect(listbox.style.zIndex).toBe(String(zIndex.transientPopup));
expect(zIndex.transientPopup).toBeGreaterThan(zIndex.floatingWindow);
fireEvent.click(screen.getByRole("option", { name: "Alpha" }));
expect(onChange).toHaveBeenCalledWith("alpha");
@ -102,4 +103,3 @@ describe("TicketViewportSelect", () => {
expect(screen.queryByRole("listbox")).toBeNull();
});
});

View File

@ -158,7 +158,7 @@ export function TicketViewportSelect({
left: position.left,
width: position.width,
maxHeight: position.maxHeight,
zIndex: zIndex.menuDropdown,
zIndex: zIndex.transientPopup,
}}
>
{options.map((option) => (