-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: connect modal #3347
base: main
Are you sure you want to change the base?
feat: connect modal #3347
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -13,7 +13,7 @@ export default css` | |||
bottom: 0; | |||
pointer-events: none; | |||
opacity: 0; | |||
background-color: var(--wui-cover); | |||
background-color: rgba(0, 0, 0, 0.8); |
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.
We don't have a variable for overlay color. Will leave it like this for now.
|
||
return { | ||
Connect: `Connect ${isEmail ? 'Email' : ''} Wallet`, |
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.
Since some of the views doesn't have a header, we can ignore those and build custom header on the view component level.
Convert: 'Convert', | ||
ConvertSelectToken: 'Select token', | ||
ConvertPreview: 'Preview convert', |
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.
These didn't exist so removed them as well
public override firstUpdated() { | ||
const connectEl = this.shadowRoot?.querySelector('.connect') | ||
// Use requestAnimationFrame to access scroll properties before the next repaint | ||
requestAnimationFrame(this.handleConnectListScroll.bind(this)) | ||
connectEl?.addEventListener('scroll', this.handleConnectListScroll.bind(this)) |
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.
I removed the gradient scroll effect for now. I'll create a separate component for that 🙏
// -- Constants ------------------------------------------ // | ||
export const ICON_COLOR = { | ||
default: vars.tokens.theme.iconDefault, | ||
accentPrimary: vars.tokens.core.iconAccentPrimary, | ||
inverse: vars.tokens.theme.iconInverse | ||
} | ||
|
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.
Introduced icon color options for <wui-icon>
component
object-fit: cover; | ||
object-position: center center; |
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.
I removed these since they caused wallet images to be cropped
Description
New AppKit connect modal
Type of change
Associated Issues
For Linear issues: Closes APKT-1532
Showcase (Optional)
Checklist