Skip to content

Commit

Permalink
added typename and classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbreese committed Mar 4, 2024
1 parent 9cc245f commit 56b7a3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .storybook/stories/paragraphs/MediaWithCaption.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const Caption: Story = {
args: {
paragraph: {
id:"6fa23537-dda7-4861-930a-648445d9904c",
__typename: 'ParagraphStanfordMediaCaption',
composition: {},
langcode: {},
created: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ const MediaCaptionParagraph = ({paragraph, ...props}: Props) => {
}
{videoUrl && <Oembed url={videoUrl}/>}

<figcaption className="text-right">
<figcaption className="text-right text-16 text-cool-grey color">
{paragraph.suMediaCaptionLink?.url &&
<Link href={paragraph.suMediaCaptionLink.url} className="">
<Link href={paragraph.suMediaCaptionLink.url} className="text-19">
{paragraph.suMediaCaptionLink.title}
</Link>
}

{paragraph.suMediaCaptionCaption &&
{paragraph.suMediaCaptionCaption?.processed &&
<Wysiwyg html={paragraph.suMediaCaptionCaption.processed}/>
}
</figcaption>
Expand Down

0 comments on commit 56b7a3b

Please sign in to comment.