react-modal icon indicating copy to clipboard operation
react-modal copied to clipboard

Why convert position property to inset?

Open gfafei opened this issue 3 years ago • 2 comments

Summary: The position property(top, right, bottom, left) is convert to inset.

The ReactModal__Content part has a inset property in style, which works fine, but not expected.

Steps to reproduce:

1. 2. 3.

Expected behavior:

keep the position property

Link to example of issue:

https://codepen.io/claydiffrient/pen/KNxgav

Additional notes:

When I debug into it, I see props passed to React.createElement still has position property, but when I inspect in chrome, position property was replaced by inset property. I don't understand, and cannot find which code take effect.

gfafei avatar Jul 20 '23 02:07 gfafei

+1, i have the same doubts.

jianqiao0313 avatar Mar 26 '24 13:03 jianqiao0313

Probably, it's something related to the browser. The default styles uses positions, but it shouldn't be a problem (it's just weird).

diasbruno avatar Mar 29 '24 15:03 diasbruno