Merge pull request #28753 from kunickiaj/ajk--homepage-cards

Allow disabling the header divider on homepage cards
This commit is contained in:
Vincenzo Scamporlino
2025-03-04 10:44:45 +01:00
committed by GitHub
2 changed files with 9 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-home-react': patch
---
Don't render header divider on homepage cards if no title was specified.
+4 -2
View File
@@ -47,7 +47,9 @@ export type RendererProps = { title?: string } & ComponentParts;
/**
* @public
*/
export type CardExtensionProps<T> = ComponentRenderer & { title?: string } & T;
export type CardExtensionProps<T> = ComponentRenderer & {
title?: string;
} & T;
/**
* @public
@@ -150,7 +152,7 @@ function CardExtension<T>(props: CardExtensionComponentProps<T>) {
}
const cardProps = {
...(title && { title }),
...(title && { title, divider: !!title }),
...(Settings && !isCustomizable
? {
action: (