From 7c5b1f1c0f4f41e8295c89350cb5dfd1e9351998 Mon Sep 17 00:00:00 2001 From: Sudhanshu Dasgupta Date: Mon, 11 Nov 2024 19:59:06 +0530 Subject: [PATCH] fi(theme): action items Signed-off-by: Sudhanshu Dasgupta --- src/custom/CatalogDetail/ActionButton.tsx | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/custom/CatalogDetail/ActionButton.tsx b/src/custom/CatalogDetail/ActionButton.tsx index 97e12ad4..41154b03 100644 --- a/src/custom/CatalogDetail/ActionButton.tsx +++ b/src/custom/CatalogDetail/ActionButton.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { CircularProgress } from '../../base'; import { CopyIcon, KanvasIcon, PublishIcon } from '../../icons'; import Download from '../../icons/Download/Download'; -import { charcoal } from '../../theme'; +import { charcoal, useTheme } from '../../theme'; import { Pattern } from '../CustomCatalog/CustomCard'; import { downloadFilter, downloadYaml } from './helper'; import { ActionButton, StyledActionWrapper, UnpublishAction } from './style'; @@ -32,6 +32,7 @@ const ActionButtons: React.FC = ({ onOpenPlaygroundClick }) => { const cleanedType = type.replace('my-', '').replace(/s$/, ''); + const theme = useTheme(); return ( {actionItems && ( @@ -46,7 +47,7 @@ const ActionButtons: React.FC = ({ = ({ sx={{ borderRadius: '0.2rem', gap: '10px', - color: charcoal[100] + color: charcoal[100], + backgroundColor: theme.palette.background.cta?.default }} onClick={() => handleClone(details?.name, details?.id)} disabled={isCloneDisabled} @@ -86,14 +88,20 @@ const ActionButtons: React.FC = ({ onOpenPlaygroundClick(details.id, details.name)} > - + Open in Playground