Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#55581] prevent background layer from darkening in multi nested dialogs

Tobias Dillmannab9ea70a49b6
diff --git a/app/components/users/hover_card_component.sass b/app/components/users/hover_card_component.sass
index cc3a1787b85..530e8683b4b 100644
--- a/app/components/users/hover_card_component.sass
+++ b/app/components/users/hover_card_component.sass
@@ -2,6 +2,14 @@
.spot-modal-overlay:has(.op-user-hover-card)
z-index: 9600
+// On the project list page, there is a bug when a hover card is invoked within the share dialog. The global spot
+// modal overlay will darken the background while the hover card is active, since its semi-transparent bg shading is
+// added on top of the other dialog background shaders. We don't want an additional spot modal background here,
+// so we disable it for this edge case.
+.controller-projects.action-index
+ .spot-modal-overlay:not(:has(.op-user-hover-card))
+ background: transparent
+
.op-user-hover-card
gap: 1rem
overflow: hidden