From 7b8272fb7d864115b79af17e99ef8d4012f7ce89 Mon Sep 17 00:00:00 2001 From: Mike Lewis Date: Wed, 5 May 2021 11:42:05 +0100 Subject: [PATCH] Remove extra bottom padding in InfoCard content Fixes #5396 by overriding padding-bottom to undefined for MuiCardContent in rootTheme.ts. Signed-off-by: Mike Lewis --- .changeset/khaki-singers-perform.md | 5 +++++ packages/theme/src/baseTheme.ts | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/khaki-singers-perform.md diff --git a/.changeset/khaki-singers-perform.md b/.changeset/khaki-singers-perform.md new file mode 100644 index 0000000000..d63c8754a8 --- /dev/null +++ b/.changeset/khaki-singers-perform.md @@ -0,0 +1,5 @@ +--- +'@backstage/theme': patch +--- + +Remove extra bottom padding in InfoCard content diff --git a/packages/theme/src/baseTheme.ts b/packages/theme/src/baseTheme.ts index e7bb7e58b6..4f5627eec9 100644 --- a/packages/theme/src/baseTheme.ts +++ b/packages/theme/src/baseTheme.ts @@ -257,6 +257,9 @@ export function createThemeOverrides(theme: BackstageTheme): Overrides { // etc) end up at the bottom of the card instead of just below the body // contents. flexGrow: 1, + '&:last-child': { + paddingBottom: undefined, + }, }, }, MuiCardActions: {