Modal
fixed position does not work properly when an ancestor has set transform property
#453
Labels
bug
Something isn't working
Modal
's backdropposition: fixed
doesn't work properly if its ancestor has settransform
property because it then acts as a containing block.One of the issues with that is when you want to have a
Modal
inside anotherModal
, it is positioned relative to the parentModal
instead of the browser viewport. We need to use something else thantransform: translate(-50%, -50%)
to compensate forwidth
andheight
of theModal
itself.The text was updated successfully, but these errors were encountered: