Skip to content

Commit 074671b

Browse files
authored
Merge pull request #8433 from TylerAPfledderer/fxi/card-link-overlay-fix
Fix link overlay in `CardList`
2 parents d9a7278 + 15fd120 commit 074671b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/CardList.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
LinkBox,
88
LinkOverlay,
99
StackProps,
10+
useColorModeValue,
1011
} from "@chakra-ui/react"
1112

1213
import { ImageProp } from "../types"
@@ -50,6 +51,8 @@ const Card = (props: CardListItem & Omit<StackProps, "title" | "id">) => {
5051
const isLink = !!link
5152
const isExternal = url.isExternal(link || "")
5253

54+
const descriptionColor = useColorModeValue("gray.500", "gray.400")
55+
5356
return (
5457
<CardContainer {...rest}>
5558
{image && <Box as={GatsbyImage} image={image} alt={alt} minW="20px" />}
@@ -69,7 +72,7 @@ const Card = (props: CardListItem & Omit<StackProps, "title" | "id">) => {
6972
<Box>{title}</Box>
7073
)}
7174

72-
<Box fontSize="sm" mb={0} opacity={0.6}>
75+
<Box fontSize="sm" mb={0} color={descriptionColor}>
7376
{description}
7477
</Box>
7578
</Flex>

0 commit comments

Comments
 (0)