From 763a31924bc789a27d7b02ff186c7343c3e5066b Mon Sep 17 00:00:00 2001 From: rebeccahongsf Date: Fri, 3 May 2024 11:23:14 -0700 Subject: [PATCH 1/7] SUP-190 | @rebeccahongsf | style text area paragraph --- src/components/elements/headers.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/elements/headers.tsx b/src/components/elements/headers.tsx index 2f621a0a..390ee4b5 100644 --- a/src/components/elements/headers.tsx +++ b/src/components/elements/headers.tsx @@ -7,7 +7,7 @@ const headingLinkClasses = "[&_a]:hocus:underline"; export const H1 = ({children, className, ...props}: Props) => { return ( -

+

{children}

) @@ -15,7 +15,7 @@ export const H1 = ({children, className, ...props}: Props) => { export const H2 = ({children, className, ...props}: Props) => { return ( -

+

{children}

) @@ -23,7 +23,7 @@ export const H2 = ({children, className, ...props}: Props) => { export const H3 = ({children, className, ...props}: Props) => { return ( -

+

{children}

) @@ -31,7 +31,7 @@ export const H3 = ({children, className, ...props}: Props) => { export const H4 = ({children, className, ...props}: Props) => { return ( -

+

{children}

) From 620d9265fcb705bf4f1fb1c804d55b3bb915d445 Mon Sep 17 00:00:00 2001 From: rebeccahongsf Date: Mon, 6 May 2024 08:40:56 -0700 Subject: [PATCH 2/7] add link styles --- src/components/elements/action-link.tsx | 2 +- src/components/elements/link.tsx | 3 ++- .../stanford-media-caption/media-caption-paragraph.tsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/elements/action-link.tsx b/src/components/elements/action-link.tsx index d53f0944..7a997d42 100644 --- a/src/components/elements/action-link.tsx +++ b/src/components/elements/action-link.tsx @@ -12,7 +12,7 @@ type Props = HtmlHTMLAttributes & { const ActionLink = ({ children, className, ...props }: Props) => { return ( - + {children} diff --git a/src/components/elements/link.tsx b/src/components/elements/link.tsx index 91d5857d..65e63a1e 100644 --- a/src/components/elements/link.tsx +++ b/src/components/elements/link.tsx @@ -4,6 +4,7 @@ import {EnvelopeIcon} from "@heroicons/react/24/outline"; import ActionLink from "@components/elements/action-link"; import Button from "@components/elements/button"; import {LinkProps} from "next/dist/client/link"; +import clsx from "clsx"; type Props = HtmlHTMLAttributes & LinkProps & { /** @@ -43,7 +44,7 @@ const DrupalLink = ({href, children, ...props}: Props) => { } return ( - + {children} {href.startsWith("mailto") && diff --git a/src/components/paragraphs/stanford-media-caption/media-caption-paragraph.tsx b/src/components/paragraphs/stanford-media-caption/media-caption-paragraph.tsx index 8819330f..bf256f2a 100644 --- a/src/components/paragraphs/stanford-media-caption/media-caption-paragraph.tsx +++ b/src/components/paragraphs/stanford-media-caption/media-caption-paragraph.tsx @@ -34,7 +34,7 @@ const MediaCaptionParagraph = ({paragraph, ...props}: Props) => {
{paragraph.suMediaCaptionLink?.url && - + {paragraph.suMediaCaptionLink.title} } From 594e1b0ca8704c9d6415f4b38d40f081a938f01c Mon Sep 17 00:00:00 2001 From: rebeccahongsf Date: Thu, 9 May 2024 19:34:11 -0700 Subject: [PATCH 3/7] fixup merge conflict --- src/components/elements/link.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/elements/link.tsx b/src/components/elements/link.tsx index 0d693a60..65e63a1e 100644 --- a/src/components/elements/link.tsx +++ b/src/components/elements/link.tsx @@ -4,11 +4,7 @@ import {EnvelopeIcon} from "@heroicons/react/24/outline"; import ActionLink from "@components/elements/action-link"; import Button from "@components/elements/button"; import {LinkProps} from "next/dist/client/link"; -<<<<<<< HEAD import clsx from "clsx"; -======= -import {twMerge} from "tailwind-merge"; ->>>>>>> 1.x type Props = HtmlHTMLAttributes & LinkProps & { /** From e5e5310ae140a2e58738bd0264e9bdb9996554f7 Mon Sep 17 00:00:00 2001 From: rebeccahongsf Date: Fri, 10 May 2024 10:19:27 -0700 Subject: [PATCH 4/7] fixup h5 and h6 headings --- src/components/elements/headers.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/elements/headers.tsx b/src/components/elements/headers.tsx index 390ee4b5..2d06f267 100644 --- a/src/components/elements/headers.tsx +++ b/src/components/elements/headers.tsx @@ -39,7 +39,7 @@ export const H4 = ({children, className, ...props}: Props) => { export const H5 = ({children, className, ...props}: Props) => { return ( -
+
{children}
) @@ -47,7 +47,7 @@ export const H5 = ({children, className, ...props}: Props) => { export const H6 = ({children, className, ...props}: Props) => { return ( -
+
{children}
) From a7bf9ff5258ae61fb137c40c60f9acf9c49f80c5 Mon Sep 17 00:00:00 2001 From: rebeccahongsf Date: Fri, 10 May 2024 10:21:41 -0700 Subject: [PATCH 5/7] fixup specificity for footer links --- src/components/config-pages/local-footer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/config-pages/local-footer.tsx b/src/components/config-pages/local-footer.tsx index 286b01ad..ab4c3f5b 100644 --- a/src/components/config-pages/local-footer.tsx +++ b/src/components/config-pages/local-footer.tsx @@ -32,12 +32,12 @@ const LocalFooter = ({ {/* Social Links */} {suLocalFootSocial && -
    +
      {suLocalFootSocial.map((link, index) => { if (!link.url) return; return (
    • - + {link.title} From 612bb6d07101e586242dfb75cd0e331f14fcdd73 Mon Sep 17 00:00:00 2001 From: rebeccahongsf Date: Fri, 10 May 2024 10:30:59 -0700 Subject: [PATCH 6/7] add wysiwyg link color --- src/components/elements/wysiwyg.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/elements/wysiwyg.tsx b/src/components/elements/wysiwyg.tsx index 272d518a..22a943e7 100644 --- a/src/components/elements/wysiwyg.tsx +++ b/src/components/elements/wysiwyg.tsx @@ -22,7 +22,7 @@ const Wysiwyg = ({html, className, ...props}: Props) => { const addMathJax = html.match(/\$\$.*\$\$/) || html.match(/\\\[.*\\\]/) || html.match(/\\\(.*\\\)/); return ( -
      +
      {addMathJax && } {formatHtml(html)}
      From b7d069fe5912e96611806198cade80b64b1020fd Mon Sep 17 00:00:00 2001 From: rebeccahongsf Date: Wed, 22 May 2024 10:50:31 -0700 Subject: [PATCH 7/7] revert back to font medium --- src/components/elements/headers.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/elements/headers.tsx b/src/components/elements/headers.tsx index 2d06f267..7803a552 100644 --- a/src/components/elements/headers.tsx +++ b/src/components/elements/headers.tsx @@ -7,7 +7,7 @@ const headingLinkClasses = "[&_a]:hocus:underline"; export const H1 = ({children, className, ...props}: Props) => { return ( -

      +

      {children}

      ) @@ -15,7 +15,7 @@ export const H1 = ({children, className, ...props}: Props) => { export const H2 = ({children, className, ...props}: Props) => { return ( -

      +

      {children}

      ) @@ -23,7 +23,7 @@ export const H2 = ({children, className, ...props}: Props) => { export const H3 = ({children, className, ...props}: Props) => { return ( -

      +

      {children}

      ) @@ -31,7 +31,7 @@ export const H3 = ({children, className, ...props}: Props) => { export const H4 = ({children, className, ...props}: Props) => { return ( -

      +

      {children}

      ) @@ -39,7 +39,7 @@ export const H4 = ({children, className, ...props}: Props) => { export const H5 = ({children, className, ...props}: Props) => { return ( -
      +
      {children}
      ) @@ -47,7 +47,7 @@ export const H5 = ({children, className, ...props}: Props) => { export const H6 = ({children, className, ...props}: Props) => { return ( -
      +
      {children}
      )