Skip to content

Commit fa9208c

Browse files
yutingzhao1991tingzhao.ytz
andauthored
fix: wallet list scroll cover style in dark mode (#965)
* fix: wallet list scroll cover style in dark mode * fix: wallet list scroll cover style in dark mode --------- Co-authored-by: tingzhao.ytz <[email protected]>
1 parent 894f08e commit fa9208c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.changeset/blue-rats-sort.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ant-design/web3': patch
3+
---
4+
5+
fix: wallet list scroll cover style in dark mode

packages/web3/src/connect-modal/style/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,11 @@ const getThemeStyle = (token: ConnectModalToken): CSSInterpolation => {
220220
width: token.walletListWidth - token.paddingMD * 2,
221221
left: token.paddingMD,
222222
height: token.controlHeightLG,
223-
backgroundImage: `linear-gradient(to bottom, ${new TinyColor(token.colorBgBase)
223+
backgroundImage: `linear-gradient(to bottom, ${new TinyColor(token.colorBgContainer)
224224
.setAlpha(0)
225-
.toRgbString()}, ${new TinyColor(token.colorBgBase).setAlpha(1).toRgbString()})`,
225+
.toRgbString()}, ${new TinyColor(token.colorBgContainer)
226+
.setAlpha(1)
227+
.toRgbString()})`,
226228
pointerEvents: 'none',
227229
},
228230
},

0 commit comments

Comments
 (0)