EntityOwnershipCard: Fix color to pick up from page theme for component type

Signed-off-by: Axel Hecht <axel@pike.org>
This commit is contained in:
Axel Hecht
2023-06-14 14:15:10 +02:00
parent 4d290c6350
commit 0151ed6ec3
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-org': patch
---
EntityOwnershipCard: Fix color to pick up from page theme for component type
@@ -42,7 +42,6 @@ const useStyles = makeStyles((theme: BackstageTheme) =>
boxShadow: theme.shadows[2],
borderRadius: '4px',
padding: theme.spacing(2),
color: theme.palette.common.white,
transition: `${theme.transitions.duration.standard}ms`,
'&:hover': {
boxShadow: theme.shadows[4],
@@ -58,6 +57,8 @@ const useStyles = makeStyles((theme: BackstageTheme) =>
entityTypeBox: {
background: (props: { type: string }) =>
theme.getPageTheme({ themeId: props.type }).backgroundImage,
color: (props: { type: string }) =>
theme.getPageTheme({ themeId: props.type }).fontColor,
},
}),
);