Skip to content

Commit f468f1e

Browse files
authored
Merge pull request #12666 from iepn/dev
fix: StablecoinsTable components dark mode text color not see#12648
2 parents 3268ca8 + 85d573c commit f468f1e

File tree

1 file changed

+12
-28
lines changed

1 file changed

+12
-28
lines changed

src/components/StablecoinsTable.tsx

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,15 @@ const StablecoinsTable = ({
4747
}
4848

4949
return (
50-
<Table
51-
variant="unstyled"
52-
my={8}
53-
borderRadius="sm"
54-
border={`1px solid ${textColor}`}
55-
bg="background.base"
56-
mb={8}
57-
minW="720px"
58-
>
59-
<Thead bg="ednBackground" color="text200">
60-
<Tr borderBottom={`1px solid ${textColor}`} mb="1px">
50+
<Table variant="unstyled" my={8} bg="background.base" mb={8} minW="720px">
51+
<Thead bg="background.highlight" color="body.medium">
52+
<Tr>
6153
{columns.map((column, idx) => (
6254
<Th
6355
key={idx}
64-
py={5}
56+
fontWeight="bold"
6557
fontSize="md"
66-
fontWeight="normal"
58+
verticalAlign="inherit"
6759
letterSpacing="normal"
6860
>
6961
{column}
@@ -90,31 +82,23 @@ const StablecoinsTable = ({
9082
<Tr
9183
key={idx}
9284
color="text"
93-
borderBottom={`1px solid ${textColor}`}
9485
_hover={{
9586
textDecoration: "none",
96-
borderBottom: `1px solid ${textColor}`,
97-
bg: "primary200",
98-
color: "black300",
87+
bg: "background.highlight",
9988
}}
10089
_focus={{
101-
borderBottom: `1px solid ${textColor}`,
102-
bg: "primary200",
103-
color: "black300",
90+
bg: "background.base",
91+
color: "body.base",
10492
}}
10593
>
106-
<Td>
107-
<Flex align="center">
94+
<Td verticalAlign="middle">
95+
<Flex>
10896
{image && <Image src={image} alt="" me={4} boxSize={6} />}
10997
<>{name}</>
11098
</Flex>
11199
</Td>
112-
<Td>
113-
<Flex align="center">{marketCap}</Flex>
114-
</Td>
115-
<Td>
116-
<Flex align="center">{stablecoinsType[type]}</Flex>
117-
</Td>
100+
<Td verticalAlign="middle">{marketCap}</Td>
101+
<Td verticalAlign="middle">{stablecoinsType[type]}</Td>
118102
{url && (
119103
<Td textAlign="end">
120104
<ButtonLink to={url} size="sm">

0 commit comments

Comments
 (0)