Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: sync theme variables with secure site #2195

Merged
merged 10 commits into from
Apr 30, 2024

Conversation

enesozturk
Copy link
Contributor

@enesozturk enesozturk commented Apr 26, 2024

Changes

The secure site uses the theme variables from the web3modal version it has. But this approach is problematic. When we make changes to our theme variables over time, and if users have a web3modal version that is not the same version as the secure site's web3modal. This would create UI's with a different look inside the transaction approval screens.

This PR introduces changes to share our w3m theme variables with a secure site with a syncTheme listener and render the UI with the same variables of w3m.

See the PR on the web3modal for the required changes: https://github.com/WalletConnect/secure-web3modal/pull/122

Copy link

vercel bot commented Apr 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web3modal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2024 7:59am
web3modal-gallery ✅ Ready (Inspect) Visit Preview Apr 29, 2024 7:59am
web3modal-laboratory ✅ Ready (Inspect) Visit Preview Apr 29, 2024 7:59am

Copy link

vercel bot commented Apr 26, 2024

Deployment failed with the following error:

Too many requests - try again in 1 minute (more than 60, code: "api-deployments-flood").

@enesozturk enesozturk requested a review from tomiir April 26, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants