Skip to content

Commit

Permalink
fix(dimmer): page dimmer in firefox results in misaligned modals
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lubber-de authored Jun 6, 2020
1 parent ffbb9ec commit 790587f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/definitions/modules/dimmer.less
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@
transform-style: @transformStyle;
perspective: @perspective;
transform-origin: center center;
&.modals {
-moz-perspective: none;
}
}
}

Expand Down

0 comments on commit 790587f

Please sign in to comment.