-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add Uniswap to token page #884
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…on the second benefit in the uniswap section
So, I've implemented the crux of the feature but I have 2 points I'd like to get clarity on, namely:
|
1. visual separation of widgets and focus stealingLet me start by saying that the first issue that actually caught my attention was that the 2 swap widgets we have now (Uniswap and ChangeNow) are not very well separated visually, so I experimented a little bit with the styles to see how we can improve it. One idea I had was to use contrast like below: Then I realized we can actually kill 2 birds with 1 stone here and solve both the visual separation issue and the iframe issue. 2. other improvements
I think we should both change the icon to one which implies copying, like this one for example: And also add the onClick handler (on the entire "tile" item) as you suggested. I'm not a design expert, but I think there are a few other visual improvements that would be good to make:
|
…n be swapped using a switch, other changes
…the url is not correctly updating the state and InstantSwap component
The reason for choosing the Changenow widget as the primary one over the Uniswap one is that the Uniswap one steals the focus, causing the viewport to scroll down to it when the user opens the page. I think it's very apparent in the current version that the user is able to also use uniswap when they scroll to the section due to the new switch component which was added. On top of that, I've also implemented the ability for us to immediately link to the uniswap section by appending Thoughts @leetjoy ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, nice work 👍
Added just one question/remark about the code.
<div | ||
role="presentation" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you using role="presentation"
here?
I think this actually should be a button
and it's not recommended to use role="presentation"
for items like that.
Thank you, LGTM! 👍 |
This PR aims to address the feature proposal outlined here: #878
Changes: