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:
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -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) => (
|
||||
|
||||
Reference in New Issue
Block a user