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);