Skip to content

Commit 790587f

Browse files
authored
fix(dimmer): page dimmer in firefox results in misaligned modals
Firefox messes around with (large) modals in certain situations. For example when trying to drag inside an input inside a modal, it scrolls to the top of the modal. Even worse on Mac where the whole modals overlays other div containers... Reason for this is the perspective setting for the page dimmer. It seems this was introduced some years back to also fix some firefox issues, so i don't dare to remove this setting completely to avoid possible other, currently unknown, issues in probably other browsers as well.
1 parent ffbb9ec commit 790587f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/definitions/modules/dimmer.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@
151151
transform-style: @transformStyle;
152152
perspective: @perspective;
153153
transform-origin: center center;
154+
&.modals {
155+
-moz-perspective: none;
156+
}
154157
}
155158
}
156159

0 commit comments

Comments
 (0)