diff --git a/.changeset/social-seals-shout.md b/.changeset/social-seals-shout.md new file mode 100644 index 0000000000..184d898b2f --- /dev/null +++ b/.changeset/social-seals-shout.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-scaffolder-react': patch +--- + +Fixes the detail icon in light theme to be visible in proper color (same as favorite star). diff --git a/plugins/scaffolder-react/src/next/components/TemplateCard/CardHeader.tsx b/plugins/scaffolder-react/src/next/components/TemplateCard/CardHeader.tsx index 72ec34c661..2acb35bfbf 100644 --- a/plugins/scaffolder-react/src/next/components/TemplateCard/CardHeader.tsx +++ b/plugins/scaffolder-react/src/next/components/TemplateCard/CardHeader.tsx @@ -35,6 +35,9 @@ const useStyles = makeStyles< display: 'flex', justifyContent: 'space-between', }, + detailIcon: { + color: ({ cardFontColor }) => cardFontColor, + }, })); /** @@ -66,7 +69,10 @@ export const CardHeader = (props: CardHeaderProps) => {
{type}
- + { const catalogEntityRoute = useRouteRef(entityRouteRef); const { t } = useTranslationRef(scaffolderReactTranslationRef); @@ -47,14 +49,13 @@ export const TemplateDetailButton = ({ aria-label={t('cardHeader.detailBtnTitle')} id={`viewDetail-${entityRef}`} style={{ padding: 0 }} - color="inherit" > - +