Merge pull request #18254 from Pike/fix-ownership-entitybox-color

EntityOwnershipCard: Fix color to pick up from page theme for component type
This commit is contained in:
Fredrik Adelöw
2023-06-14 15:39:03 +02:00
committed by GitHub
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,
},
}),
);