diff --git a/.changeset/hot-hounds-speak.md b/.changeset/hot-hounds-speak.md new file mode 100644 index 00000000000..096d29ec90c --- /dev/null +++ b/.changeset/hot-hounds-speak.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +Dialog v1: Fix font-family for title diff --git a/packages/react/src/Dialog.stories.tsx b/packages/react/src/Dialog.stories.tsx index a637cbb2b94..7a71f554a87 100644 --- a/packages/react/src/Dialog.stories.tsx +++ b/packages/react/src/Dialog.stories.tsx @@ -28,7 +28,7 @@ export const Default = () => {
Title - Some content + Some content
diff --git a/packages/react/src/Dialog.tsx b/packages/react/src/Dialog.tsx index 2487bc2fe34..8d69b6701d8 100644 --- a/packages/react/src/Dialog.tsx +++ b/packages/react/src/Dialog.tsx @@ -57,7 +57,7 @@ export type DialogHeaderProps = ComponentProps function DialogHeader({theme, children, backgroundColor = 'canvas.subtle', ...rest}: DialogHeaderProps) { if (React.Children.toArray(children).every(ch => typeof ch === 'string')) { children = ( - + {children} )