labscommunity / arweave-wallet-kit

A React library for interaction with different Arweave wallets
https://docs.arweavekit.com/wallets/wallet-kit
MIT License
16 stars 9 forks source link

fix(modal): use non-transform properties to prevent modal from blurring #8

Closed crookse-cl closed 10 months ago

crookse-cl commented 10 months ago

Summary

I noticed the Modal component is blurry on some screens while working with the ConnectButton component. Looked into it and noticed it uses transform CSS properties. Although using these properties in conjunction with Framer Motion are probably more performant than CPU-rendered methods, I'm proposing we move the Modal component away from transform CSS properties and use a combination of width, flexbox, and position CSS properties to create the same effect, but with a higher level of accessibility. Thoughts?

Changes made

Cons to the above changes

How to test

Questions

Other topics for discussion

7i7o commented 10 months ago

Comments on topics raised:

TODO on line 95 in Modal.tsx: Yes, we should add that as an issue to fix because it happens in the package already

Reduced Motion: Nice feat to add. Would love to see some OSS contrib there 😊

Mobile viewport orientation: We can talk about choices. Also an issue that could be added to the repo.