Skip to content

Commit f029446

Browse files
committed
remove opacity from Text component to avoid passing that style to the tooltips
1 parent 7719fef commit f029446

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/components/Card/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const Card = ({ emoji, title, description, children, ...props }: CardProps) => (
3030
{title}
3131
</Heading>
3232
)}
33-
{description && <Text opacity={0.8}>{description}</Text>}
33+
{description && <Text>{description}</Text>}
3434
</Stack>
3535
</Stack>
3636
{children}

src/components/DataProductCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const DataProductCard = ({
9797
{name}
9898
</LinkOverlay>
9999
</Heading>
100-
<Text fontSize="sm" opacity="0.8" mx={4} mb={4} lineHeight="140%">
100+
<Text fontSize="sm" mx={4} mb={4} lineHeight="140%">
101101
{description}
102102
</Text>
103103
</Box>

src/components/EventCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const EventCard = ({
9393
<Heading as="h3" marginTop={0} fontWeight="semibold" lineHeight={1.4}>
9494
{title}
9595
</Heading>
96-
<Text opacity={0.8}>{description}</Text>
96+
<Text>{description}</Text>
9797
<ButtonLink to={to}>View Event</ButtonLink>
9898
</Box>
9999
</Box>

src/components/HorizontalCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const HorizontalCard = ({
2323
<Emoji fontSize={`${emojiSize}rem`} text={emoji} />
2424
<Box flexGrow="0" flexShrink="1" flexBasis="75%" ms="8">
2525
<Text fontSize="lg">{title}</Text>
26-
<Text opacity="0.8" mt="-4" mb="2">
26+
<Text mt="-4" mb="2">
2727
{description}
2828
</Text>
2929
<>{children}</>

src/components/Layer2ProductCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ const Layer2ProductCard = ({
7373
{children}
7474
</Box>
7575
)}
76-
<Text opacity="0.8" fontSize="sm" mb={2} lineHeight="140%">
76+
<Text fontSize="sm" mb={2} lineHeight="140%">
7777
{description}
7878
</Text>
7979
{note.length > 0 && (
80-
<Text opacity="0.8" fontSize="sm" mb={2} lineHeight="140%">
80+
<Text fontSize="sm" mb={2} lineHeight="140%">
8181
{t("layer-2-note")} {note}
8282
</Text>
8383
)}

0 commit comments

Comments
 (0)