diff --git a/.changeset/blue-laws-lie.md b/.changeset/blue-laws-lie.md new file mode 100644 index 00000000..069d3bbd --- /dev/null +++ b/.changeset/blue-laws-lie.md @@ -0,0 +1,5 @@ +--- +"@cambly/syntax-core": minor +--- + +Typography: use final font + Modal: fix image size diff --git a/packages/syntax-core/src/Modal/Modal.stories.tsx b/packages/syntax-core/src/Modal/Modal.stories.tsx index 873e3583..a4afffea 100644 --- a/packages/syntax-core/src/Modal/Modal.stories.tsx +++ b/packages/syntax-core/src/Modal/Modal.stories.tsx @@ -99,7 +99,13 @@ export const WithImage: StoryObj = { args: { ...Default.args, header: "With Image", - image: placeholder image, + image: ( + placeholder image + ), }, render: function WithImageExample({ ...args }): JSX.Element { const [isOpen, setIsOpen] = useState(false); diff --git a/packages/syntax-core/src/Modal/Modal.tsx b/packages/syntax-core/src/Modal/Modal.tsx index cbe44055..d7cea558 100644 --- a/packages/syntax-core/src/Modal/Modal.tsx +++ b/packages/syntax-core/src/Modal/Modal.tsx @@ -102,7 +102,9 @@ export default function Modal({ onDismiss: () => void; /** * The optional image rendered above the Modal. - * Image size should be 400w x 200h. + * Image + * * Size should be 600w x 200h + * * Be sure to set width="100%" on the image * If images aren't that sized, should ask design to give another image. */ image?: JSX.Element; @@ -222,7 +224,7 @@ export default function Modal({ )} - {image && {image}} + {image && {image}}