Skip to content

fix: When a wireframe token is present, adapt the style of the connect-modal accordingly. #1441

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

maskboys
Copy link
Collaborator

[中文版模板 / Chinese template]

💡 Background and solution

image

🔗 Related issue link

#1118

Copy link

vercel bot commented May 18, 2025

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

Name Status Preview Comments Updated (UTC)
ant-design-web3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 25, 2025 9:12am

Copy link

github-actions bot commented May 18, 2025

Preview is ready

@yutingzhao1991
Copy link
Collaborator

image

这里边距不太对,离得太近了,参考下 antd 的距离。

另外在 ConnectModal 里面添加一个对应的 Demo。

Copy link

changeset-bot bot commented May 25, 2025

🦋 Changeset detected

Latest commit: d63eb7d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@ant-design/web3 Patch
@example/eth-web3js Patch
@example/ethers-v5 Patch
@example/ethers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

group: UI Components
cover: https://mdn.alipayobjects.com/huamei_mutawc/afts/img/A*mUC3SYLpq0AAAAAAAAAAAAAADlrGAQ/original
coverDark: https://mdn.alipayobjects.com/huamei_mutawc/afts/img/A*dmHOSI_kdd0AAAAAAAAAAAAADlrGAQ/original
c--- nav: Components group: UI Components cover: https://mdn.alipayobjects.com/huamei_mutawc/afts/img/A*mUC3SYLpq0AAAAAAAAAAAAAADlrGAQ/original coverDark: https://mdn.alipayobjects.com/huamei_mutawc/afts/img/A*dmHOSI_kdd0AAAAAAAAAAAAADlrGAQ/original
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是不是改错了?

@@ -92,6 +95,8 @@ const getThemeStyle = (token: ConnectModalToken): CSSInterpolation => {
[`${componentCls}-header`]: {
paddingInline: token.paddingMD,
height: 30,
borderBlockEnd: token.wireframe ? '1px solid rgba(0, 0, 0, 0.06)' : 'none',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1px solid rgba(0, 0, 0, 0.06) 这个应该要换成使用 ant design 的 token 看看是不是 colorPrimaryBorder 这个,或者有更合适的。

@@ -92,6 +95,8 @@ const getThemeStyle = (token: ConnectModalToken): CSSInterpolation => {
[`${componentCls}-header`]: {
paddingInline: token.paddingMD,
height: 30,
borderBlockEnd: token.wireframe ? '1px solid rgba(0, 0, 0, 0.06)' : 'none',
paddingBlockEnd: token.wireframe ? '16px' : 0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

padding 的置也应该用 antd 的 token,看看能不能用 padding

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.

2 participants