Skip to content

Commit ed69c53

Browse files
authored
fix(crypto-input): fix token style (#1007)
1 parent deae4aa commit ed69c53

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.changeset/sour-boats-flow.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ant-design/web3': patch
3+
---
4+
5+
fix(crypto-input): fix token style

packages/web3/src/crypto-input/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const CryptoInput: React.FC<CryptoInputProps> = ({
131131
{footer !== false && (
132132
<div className={getClsName('footer')}>
133133
{footer || (
134-
<Flex className={getClsName('total-default-footer')} justify="space-between">
134+
<Flex className={getClsName('default-footer')} justify="space-between">
135135
<Typography.Text
136136
ellipsis={{ tooltip: tokenTotalPrice }}
137137
className={getClsName('total-price')}

packages/web3/src/crypto-input/style/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -85,21 +85,21 @@ const getTokenStyle: GenerateStyle<TokenStyle> = (token) => {
8585
},
8686

8787
[`${componentCls}-footer`]: {
88-
'.default-footer': {
88+
[`${componentCls}-default-footer`]: {
8989
fontWeight: fontWeightStrong,
9090

91-
'.total-price': {
91+
[`${componentCls}-total-price`]: {
9292
flex: 1,
9393
color: colorTextTertiary,
9494
marginInlineEnd: marginSM,
9595
},
9696

97-
'.token-balance': {
97+
[`${componentCls}-token-balance`]: {
9898
color: colorTextTertiary,
9999
flex: '0 0 auto',
100100
},
101101

102-
'.max-button': {
102+
[`${componentCls}-max-button`]: {
103103
marginInlineStart: marginXS,
104104
color: colorInfoText,
105105
},

0 commit comments

Comments
 (0)