diff --git a/.changeset/violet-flies-marry.md b/.changeset/violet-flies-marry.md new file mode 100644 index 000000000..c4600dfbe --- /dev/null +++ b/.changeset/violet-flies-marry.md @@ -0,0 +1,5 @@ +--- +'myst-to-react': patch +--- + +Ensure icon is correct size without styles diff --git a/packages/myst-to-react/src/exercise.tsx b/packages/myst-to-react/src/exercise.tsx index 1b87b491d..d3482029e 100644 --- a/packages/myst-to-react/src/exercise.tsx +++ b/packages/myst-to-react/src/exercise.tsx @@ -86,7 +86,7 @@ export function Callout({ children: React.ReactNode; dropdown?: boolean; identifier?: string; - Icon?: (props: { className?: string }) => JSX.Element; + Icon?: (props: { width?: string; height?: string; className?: string }) => JSX.Element; }) { return ( {Icon && (