@@ -2,7 +2,7 @@ import React from 'react';
22import { CircularProgress } from '../../base' ;
33import { CopyIcon , KanvasIcon , PublishIcon } from '../../icons' ;
44import Download from '../../icons/Download/Download' ;
5- import { charcoal } from '../../theme' ;
5+ import { charcoal , useTheme } from '../../theme' ;
66import { Pattern } from '../CustomCatalog/CustomCard' ;
77import { downloadFilter , downloadYaml } from './helper' ;
88import { ActionButton , StyledActionWrapper , UnpublishAction } from './style' ;
@@ -32,6 +32,7 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
3232 onOpenPlaygroundClick
3333} ) => {
3434 const cleanedType = type . replace ( 'my-' , '' ) . replace ( / s $ / , '' ) ;
35+ const theme = useTheme ( ) ;
3536 return (
3637 < StyledActionWrapper >
3738 { actionItems && (
@@ -46,7 +47,7 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
4647 < ActionButton
4748 sx = { {
4849 borderRadius : '0.2rem' ,
49- backgroundColor : charcoal [ 10 ] ,
50+ backgroundColor : theme . palette . background . brand ?. default ,
5051 gap : '10px' ,
5152 color : charcoal [ 100 ]
5253 } }
@@ -65,7 +66,8 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
6566 sx = { {
6667 borderRadius : '0.2rem' ,
6768 gap : '10px' ,
68- color : charcoal [ 100 ]
69+ color : charcoal [ 100 ] ,
70+ backgroundColor : theme . palette . background . cta ?. default
6971 } }
7072 onClick = { ( ) => handleClone ( details ?. name , details ?. id ) }
7173 disabled = { isCloneDisabled }
@@ -86,14 +88,20 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
8688 < ActionButton
8789 sx = { {
8890 borderRadius : '0.2rem' ,
89- backgroundColor : 'background.cta.default' ,
90- color : charcoal [ 10 ] ,
91+ backgroundColor : 'transparent' ,
92+ border : `1px solid ${ theme . palette . border . normal } ` ,
93+ color : theme . palette . text . default ,
9194 gap : '10px' ,
9295 width : '100%'
9396 } }
9497 onClick = { ( ) => onOpenPlaygroundClick ( details . id , details . name ) }
9598 >
96- < KanvasIcon width = { 24 } height = { 24 } primaryFill = { charcoal [ 10 ] } fill = { charcoal [ 10 ] } />
99+ < KanvasIcon
100+ width = { 24 }
101+ height = { 24 }
102+ primaryFill = { theme . palette . icon . default }
103+ fill = { theme . palette . icon . default }
104+ />
97105 Open in Playground
98106 </ ActionButton >
99107
0 commit comments