From 0e975db5c511e67bed70be68cf53e100b34fd1f5 Mon Sep 17 00:00:00 2001 From: rebeccahongsf Date: Wed, 18 Sep 2024 14:52:54 -0700 Subject: [PATCH] SUM-269 | adjust links for dark pill color backgrounds --- src/components/patterns/pill-card.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/patterns/pill-card.tsx b/src/components/patterns/pill-card.tsx index fe11081f..f88d144b 100644 --- a/src/components/patterns/pill-card.tsx +++ b/src/components/patterns/pill-card.tsx @@ -69,6 +69,8 @@ const PillCard = ({imageUrl, imageAlt, videoUrl, isArticle, children, bgColor, . "rs-px-3 flex flex-col pb-[125px] pt-20 @7xl:rs-px-4 @2xl:pb-[175px] @3xl:pb-[225px] @4xl:pb-[300px]", clsx({ "pt-[125px] @3xl:pt-[175px] @4xl:pt-[225px] @5xl:pt-[250px] @7xl:pt-[300px]": !imageUrl, + "[&_p>a]:text-black-true [&_p>a]:no-underline [&_p>a]:hocus:text-black-true [&_p>a]:hocus:underline": + typeof bgColor == "string" && !bgColor?.includes("semitransparent"), }) )} >