From 4b7a60949bb718d9b6db8315cfa1a52e15f9da6b Mon Sep 17 00:00:00 2001 From: rebeccahongsf Date: Thu, 2 May 2024 16:05:21 -0700 Subject: [PATCH 1/6] SUP-192 | @rebeccahongsf | update media caption link styles --- src/components/elements/action-link.tsx | 8 ++++---- src/components/elements/link.tsx | 12 ++++++------ .../media-caption-paragraph.tsx | 6 +++--- tailwind.config.js | 8 ++++---- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/components/elements/action-link.tsx b/src/components/elements/action-link.tsx index beeff0de..d53f0944 100644 --- a/src/components/elements/action-link.tsx +++ b/src/components/elements/action-link.tsx @@ -1,5 +1,5 @@ import Link from "@components/elements/link"; -import {ChevronRightIcon} from "@heroicons/react/20/solid"; +import {ArrowLongRightIcon} from "@heroicons/react/20/solid"; import {HtmlHTMLAttributes} from "react"; import {twMerge} from "tailwind-merge"; @@ -10,11 +10,11 @@ type Props = HtmlHTMLAttributes & { href: string } -const ActionLink = ({children, ...props}: Props) => { +const ActionLink = ({ children, className, ...props }: Props) => { return ( - + {children} - + ) } diff --git a/src/components/elements/link.tsx b/src/components/elements/link.tsx index e754e9af..03f7b94b 100644 --- a/src/components/elements/link.tsx +++ b/src/components/elements/link.tsx @@ -12,7 +12,7 @@ type Props = HtmlHTMLAttributes & LinkPro href: string } -const DrupalLink = ({href, className, children, ...props}: Props) => { +const DrupalLink = ({href, children, ...props}: Props) => { // Make sure all links have a href. href = href || "#" const drupalBase: string = (process.env.NEXT_PUBLIC_DRUPAL_BASE_URL || "").replace(/\/$/, ""); @@ -21,7 +21,7 @@ const DrupalLink = ({href, className, children, ...props}: Props) => { href = href.replace(drupalBase, "").replace("", "/"); } - if (className?.includes("link--action")) { + if (props.className?.includes("link--action")) { return ( {children} @@ -29,12 +29,12 @@ const DrupalLink = ({href, className, children, ...props}: Props) => { ) } - if (className?.includes("button")) { + if (props.className?.includes("button")) { return (