Skip to content

Commit da09f06

Browse files
jrr997jrr997kiner-tang
authored
fix(ConnectModal): solve plugin tag hover style display unexpected issue (#861)
* fix: pluginTag的错误hover * chore: changeset * Update .changeset/fresh-pugs-kick.md * fix: optimize PluginTag hover style --------- Co-authored-by: jrr997 <[email protected]> Co-authored-by: kiner-tang <[email protected]>
1 parent a4bdad7 commit da09f06

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.changeset/fresh-pugs-kick.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ant-design/web3": patch
3+
---
4+
5+
fix: ConnectModal PluginTag hover error

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

+17-3
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,23 @@ const getThemeStyle = (token: ConnectModalToken): CSSInterpolation => {
174174
},
175175
'&:hover': {
176176
background: token.hoverBg,
177-
[`${componentCls}-plugin-tag:not(:disabled)`]: {
178-
color: token.colorPrimary,
179-
borderColor: token.colorPrimary,
177+
[`&:has(${componentCls}-qr-btn:not(:hover))`]: {
178+
[`${componentCls}-plugin-tag:not(:disabled)`]: {
179+
color: token.colorPrimary,
180+
borderColor: token.colorPrimary,
181+
},
182+
},
183+
[`&:not(:has(${componentCls}-plugin-tag))`]: {
184+
[`${componentCls}-qr-btn`]: {
185+
color: token.colorPrimary,
186+
borderColor: token.colorPrimary,
187+
},
188+
},
189+
[`&:has(${componentCls}-plugin-tag:disabled)`]: {
190+
[`${componentCls}-qr-btn`]: {
191+
color: token.colorPrimary,
192+
borderColor: token.colorPrimary,
193+
},
180194
},
181195
},
182196
'&.selected': {

0 commit comments

Comments
 (0)