Skip to content

Commit 9f2c809

Browse files
committed
[feat] unify tokenTag typo and height for aligning copy button style
1 parent 251739f commit 9f2c809

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

apps/extension/src/pages/main/components/token/copy-address-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const getCopyAddressButtonHoverBackgroundColor = (theme: {
3636
}): string => {
3737
return theme.mode === "light"
3838
? Color(ColorPalette["gray-100"]).alpha(0.5).toString()
39-
: ColorPalette["gray-450"];
39+
: ColorPalette["gray-500"];
4040
};
4141

4242
export const CopyAddressButton: FunctionComponent<{

apps/extension/src/pages/main/components/token/token-tag.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { FunctionComponent } from "react";
33
import { useTheme } from "styled-components";
44
import { Tooltip } from "../../../../components/tooltip";
55
import { Box } from "../../../../components/box";
6-
import { BaseTypography } from "../../../../components/typography";
6+
import { Caption2 } from "../../../../components/typography";
77
import { ColorPalette } from "../../../../styles";
88

99
export const TokenTag: FunctionComponent<{
@@ -26,20 +26,17 @@ export const TokenTag: FunctionComponent<{
2626
paddingX="0.375rem"
2727
paddingTop="0.125rem"
2828
paddingBottom="0.1875rem"
29+
height="1.25rem"
2930
>
30-
<BaseTypography
31-
style={{
32-
fontWeight: 400,
33-
fontSize: "0.6875rem",
34-
}}
31+
<Caption2
3532
color={
3633
theme.mode === "light"
3734
? ColorPalette["blue-400"]
3835
: ColorPalette["gray-200"]
3936
}
4037
>
4138
{text}
42-
</BaseTypography>
39+
</Caption2>
4340
</Box>
4441
</Tooltip>
4542
);

0 commit comments

Comments
 (0)