diff --git a/.changeset/late-hairs-kneel.md b/.changeset/late-hairs-kneel.md new file mode 100644 index 0000000000..d9e2731b6d --- /dev/null +++ b/.changeset/late-hairs-kneel.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-home-react': patch +--- + +Don't render header divider on homepage cards if no title was specified. diff --git a/plugins/home-react/src/extensions.tsx b/plugins/home-react/src/extensions.tsx index 404b5752ea..71b17a81a4 100644 --- a/plugins/home-react/src/extensions.tsx +++ b/plugins/home-react/src/extensions.tsx @@ -47,7 +47,9 @@ export type RendererProps = { title?: string } & ComponentParts; /** * @public */ -export type CardExtensionProps = ComponentRenderer & { title?: string } & T; +export type CardExtensionProps = ComponentRenderer & { + title?: string; +} & T; /** * @public @@ -150,7 +152,7 @@ function CardExtension(props: CardExtensionComponentProps) { } const cardProps = { - ...(title && { title }), + ...(title && { title, divider: !!title }), ...(Settings && !isCustomizable ? { action: (