Skip to content

Commit

Permalink
SUP-192 | @jenbreese | add custom colors and update media caption lin…
Browse files Browse the repository at this point in the history
…k style (#5)

* SUP-192: media caption

* SUP-192: added custom colors

* shift colors config into extends section

* fixup lint issue with image focal points; regenerate drupal graphql

* fixup

* fixup

* remove lockup

---------

Co-authored-by: rebeccahongsf <rebeccahongsf@gmail.com>
  • Loading branch information
jenbreese and rebeccahongsf authored May 2, 2024
1 parent d4623d7 commit bd7e632
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/elements/action-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ActionLink = ({children, ...props}: Props) => {
return (
<Link {...props} className={twMerge("relative", props.className)}>
{children}
<ChevronRightIcon height={25} className="ml-2 inline-block"/>
<ChevronRightIcon height={20} className="ml-2 inline-block mb-2"/>
</Link>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/elements/wysiwyg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const options: HTMLReactParserOptions = {
return cleanMediaMarkup(domNode);

case "p":
nodeProps.className = twMerge(nodeProps.className, "max-w-[100ch] leading-[1.7] text-21");
nodeProps.className = twMerge(nodeProps.className, "max-w-[100ch] leading-[1.7] type-1");
return <NodeName {...nodeProps}>{domToReact(children, options)}</NodeName>

case "script":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const MediaCaptionParagraph = ({paragraph, ...props}: Props) => {
}
{videoUrl && <Oembed url={videoUrl}/>}

<figcaption className="text-right text-m0 text-cool-grey color">
<figcaption className="text-archway-dark">
{paragraph.suMediaCaptionLink?.url &&
<Link href={paragraph.suMediaCaptionLink.url}>
<Link href={paragraph.suMediaCaptionLink.url} className="link--action">
{paragraph.suMediaCaptionLink.title}
</Link>
}
Expand Down
8 changes: 6 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ module.exports = {
'15xl': '150rem',
},
scale: {
'-100': '-1'
}
'-100': '-1',
},
colors: {
'press-indigo': '#003D69',
'press-grass': '#00593E',
},
},
},
plugins: [
Expand Down

0 comments on commit bd7e632

Please sign in to comment.