Skip to content

Commit

Permalink
fix: bitcoin icon color display unexpected when hover (#450)
Browse files Browse the repository at this point in the history
Co-authored-by: cong_wang <[email protected]>
  • Loading branch information
cong1223 and 0xbe37e authored Jan 3, 2024
1 parent 7778597 commit 8bba386
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 64 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-roses-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ant-design/web3-icons': patch
---

fix: bitcoin icon color display unexpected when hover.
56 changes: 6 additions & 50 deletions packages/icons/src/__tests__/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -201,34 +201,9 @@ exports[`Test Icons > should render all icons 5`] = `
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<g
fill="none"
fill-rule="evenodd"
stroke="none"
stroke-width="1"
>
<g>
<rect
fill="#FFFFFF"
fill-opacity="0"
height="1024"
width="1024"
x="0"
y="0"
/>
<circle
cx="513"
cy="512"
fill="#FFFFFF"
r="512"
/>
<path
d="M577.950552,535.212229 L577.950552,535.212229 C574.327956,535.48798 555.611211,536.621622 513.860795,536.621622 C480.653666,536.621622 457.076605,535.610536 448.805011,535.212229 L448.805011,535.212229 C320.474555,529.482742 224.687084,506.809906 224.687084,479.663781 C224.687084,452.517655 320.474555,429.875458 448.805011,424.054054 L448.805011,512.63131 C457.197358,513.244089 481.227244,514.684121 514.434372,514.684121 C554.282926,514.684121 574.237391,512.998977 577.829799,512.661949 L577.829799,424.115332 C705.888561,429.906097 801.464714,452.578933 801.464714,479.663781 C801.464714,506.748628 705.918749,529.421464 577.829799,535.18159 L577.829799,535.18159 L577.950552,535.212229 Z M578.303944,414.791292 L578.303944,335.663908 L756.865429,335.663908 L756.865429,215 L270.707657,215 L270.707657,335.663908 L449.238979,335.663908 L449.238979,414.760705 C304.12761,421.520331 195,450.669306 195,485.599136 C195,520.528967 304.12761,549.647355 449.238979,556.437567 L449.238979,810 L578.273782,810 L578.273782,556.345808 C723.053364,549.586182 832,520.467794 832,485.56855 C832,450.669306 723.143852,421.550918 578.273782,414.760705 L578.273782,414.760705 L578.303944,414.791292 Z"
fill="#000000"
id="\\u5F62\\u72B6"
/>
</g>
</g>
<path
d="M577.950552,535.212229 L577.950552,535.212229 C574.327956,535.48798 555.611211,536.621622 513.860795,536.621622 C480.653666,536.621622 457.076605,535.610536 448.805011,535.212229 L448.805011,535.212229 C320.474555,529.482742 224.687084,506.809906 224.687084,479.663781 C224.687084,452.517655 320.474555,429.875458 448.805011,424.054054 L448.805011,512.63131 C457.197358,513.244089 481.227244,514.684121 514.434372,514.684121 C554.282926,514.684121 574.237391,512.998977 577.829799,512.661949 L577.829799,424.115332 C705.888561,429.906097 801.464714,452.578933 801.464714,479.663781 C801.464714,506.748628 705.918749,529.421464 577.829799,535.18159 L577.829799,535.18159 L577.950552,535.212229 Z M578.303944,414.791292 L578.303944,335.663908 L756.865429,335.663908 L756.865429,215 L270.707657,215 L270.707657,335.663908 L449.238979,335.663908 L449.238979,414.760705 C304.12761,421.520331 195,450.669306 195,485.599136 C195,520.528967 304.12761,549.647355 449.238979,556.437567 L449.238979,810 L578.273782,810 L578.273782,556.345808 C723.053364,549.586182 832,520.467794 832,485.56855 C832,450.669306 723.143852,421.550918 578.273782,414.760705 L578.273782,414.760705 L578.303944,414.791292 Z"
/>
</svg>
</span>
`;
Expand Down Expand Up @@ -2192,28 +2167,9 @@ exports[`Test Icons > should render all icons 45`] = `
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<g
fill="none"
fill-rule="evenodd"
stroke="none"
stroke-width="1"
>
<g>
<rect
fill="#FFFFFF"
fill-opacity="0"
height="1024"
width="1024"
x="0"
y="0"
/>
<path
d="M774.620197,443.020816 C785.605878,369.046805 729.692038,329.281438 653.235071,302.752663 L678.036614,202.546375 L617.48201,187.344149 L593.336115,284.909738 C577.41798,280.914934 561.067569,277.145152 544.820956,273.409787 L569.138976,175.2009 L508.618536,160 L483.801227,260.171872 C470.623928,257.148635 457.688393,254.161136 445.132578,251.016123 L445.202217,250.70374 L361.69213,229.699917 L345.583478,294.84777 C345.583478,294.84777 390.511638,305.218639 389.562988,305.861937 C414.088607,312.028865 418.520456,328.377378 417.779405,341.337324 L389.528825,455.494979 C391.218525,455.92914 393.408829,456.553906 395.823813,457.526796 C393.805632,457.023806 391.649492,456.466545 389.425026,455.92914 L349.826124,615.845689 C346.825133,623.350836 339.218853,634.608557 322.076146,630.334461 C322.679235,631.221314 278.061162,619.268671 278.061162,619.268671 L248,689.090365 L326.801001,708.877745 C341.4604,712.577373 355.828108,716.451722 369.969821,720.099727 L344.910752,821.453626 L405.395716,836.654527 L430.214338,736.378086 C446.736874,740.895734 462.777203,745.065261 478.47197,748.991233 L453.73875,848.799101 L514.293353,864 L539.353737,762.838031 C642.610718,782.520843 720.258098,774.581535 752.940529,680.507759 C779.276728,604.761367 751.629238,561.070029 697.301298,532.578267 C736.866039,523.388102 766.668357,497.171709 774.620197,443.020816 Z M636.264487,638.448491 C617.551649,714.193559 490.941064,673.246165 449.892909,662.978542 L483.14558,528.703916 C524.193735,539.023162 655.822178,559.45384 636.264487,638.448491 Z M654.994409,441.92615 C637.920026,510.826577 532.541066,475.821088 498.356825,467.238482 L528.504704,345.455227 C562.688945,354.037833 672.775679,370.054109 654.994409,441.92615 Z"
fill="#000000"
fill-rule="nonzero"
/>
</g>
</g>
<path
d="M774.620197,443.020816 C785.605878,369.046805 729.692038,329.281438 653.235071,302.752663 L678.036614,202.546375 L617.48201,187.344149 L593.336115,284.909738 C577.41798,280.914934 561.067569,277.145152 544.820956,273.409787 L569.138976,175.2009 L508.618536,160 L483.801227,260.171872 C470.623928,257.148635 457.688393,254.161136 445.132578,251.016123 L445.202217,250.70374 L361.69213,229.699917 L345.583478,294.84777 C345.583478,294.84777 390.511638,305.218639 389.562988,305.861937 C414.088607,312.028865 418.520456,328.377378 417.779405,341.337324 L389.528825,455.494979 C391.218525,455.92914 393.408829,456.553906 395.823813,457.526796 C393.805632,457.023806 391.649492,456.466545 389.425026,455.92914 L349.826124,615.845689 C346.825133,623.350836 339.218853,634.608557 322.076146,630.334461 C322.679235,631.221314 278.061162,619.268671 278.061162,619.268671 L248,689.090365 L326.801001,708.877745 C341.4604,712.577373 355.828108,716.451722 369.969821,720.099727 L344.910752,821.453626 L405.395716,836.654527 L430.214338,736.378086 C446.736874,740.895734 462.777203,745.065261 478.47197,748.991233 L453.73875,848.799101 L514.293353,864 L539.353737,762.838031 C642.610718,782.520843 720.258098,774.581535 752.940529,680.507759 C779.276728,604.761367 751.629238,561.070029 697.301298,532.578267 C736.866039,523.388102 766.668357,497.171709 774.620197,443.020816 Z M636.264487,638.448491 C617.551649,714.193559 490.941064,673.246165 449.892909,662.978542 L483.14558,528.703916 C524.193735,539.023162 655.822178,559.45384 636.264487,638.448491 Z M654.994409,441.92615 C637.920026,510.826577 532.541066,475.821088 498.356825,467.238482 L528.504704,345.455227 C562.688945,354.037833 672.775679,370.054109 654.994409,441.92615 Z"
/>
</svg>
</span>
`;
Expand Down
7 changes: 1 addition & 6 deletions packages/icons/src/svgs/bitcoin-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 3 additions & 8 deletions packages/icons/src/svgs/usdt-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8bba386

Please sign in to comment.