From de75f7c0f4ee117808aac9e1e6d87dd233ca65cc Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Mon, 27 Apr 2026 08:56:12 +0100 Subject: [PATCH] fix(ui): set CardBody minimum height Signed-off-by: Charles de Dreuille --- .changeset/fix-cardbody-min-height.md | 7 +++++++ packages/ui/src/components/Card/Card.module.css | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/fix-cardbody-min-height.md diff --git a/.changeset/fix-cardbody-min-height.md b/.changeset/fix-cardbody-min-height.md new file mode 100644 index 0000000000..70019d273a --- /dev/null +++ b/.changeset/fix-cardbody-min-height.md @@ -0,0 +1,7 @@ +--- +'@backstage/ui': patch +--- + +Fixed `CardBody` showing an unwanted scrollbar when constrained below the scroll shadow height. + +**Affected components:** Card diff --git a/packages/ui/src/components/Card/Card.module.css b/packages/ui/src/components/Card/Card.module.css index 39af87ccc0..91c533aaa5 100644 --- a/packages/ui/src/components/Card/Card.module.css +++ b/packages/ui/src/components/Card/Card.module.css @@ -94,7 +94,7 @@ .bui-CardBody { flex: 1; - min-height: 0; + min-height: var(--bui-space-6); overflow: auto; padding-inline: var(--bui-space-3); padding-block: var(--bui-space-3);