Fix light mode colour token in ItemCardHeader (#31203)

The text colour in the ItemCardHeader component is always white, which makes the content unreadable that when you're rendering on a white background in light mode. This switches to a semantic token instead that will dynamically adjust to whichever theme is currently set.

Signed-off-by: James Brooks <jamesbrooks@spotify.com>
This commit is contained in:
James Brooks
2025-09-19 16:09:27 +01:00
committed by GitHub
parent 2a3704d75f
commit d493126c98
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Swap base token for semantic token in ItemCardHeader to ensure readability in light mode.
@@ -30,7 +30,7 @@ export type ItemCardHeaderClassKey = 'root';
const styles = (theme: Theme) =>
createStyles({
root: {
color: theme.palette.common.white,
color: theme.palette.text.primary,
padding: theme.spacing(2, 2, 3),
backgroundImage: theme.getPageTheme({ themeId: 'card' }).backgroundImage,
backgroundPosition: 0,