@@ -2,7 +2,7 @@ import React from 'react';
2
2
import { CircularProgress } from '../../base' ;
3
3
import { CopyIcon , KanvasIcon , PublishIcon } from '../../icons' ;
4
4
import Download from '../../icons/Download/Download' ;
5
- import { charcoal } from '../../theme' ;
5
+ import { charcoal , useTheme } from '../../theme' ;
6
6
import { Pattern } from '../CustomCatalog/CustomCard' ;
7
7
import { downloadFilter , downloadYaml } from './helper' ;
8
8
import { ActionButton , StyledActionWrapper , UnpublishAction } from './style' ;
@@ -32,6 +32,7 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
32
32
onOpenPlaygroundClick
33
33
} ) => {
34
34
const cleanedType = type . replace ( 'my-' , '' ) . replace ( / s $ / , '' ) ;
35
+ const theme = useTheme ( ) ;
35
36
return (
36
37
< StyledActionWrapper >
37
38
{ actionItems && (
@@ -46,7 +47,7 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
46
47
< ActionButton
47
48
sx = { {
48
49
borderRadius : '0.2rem' ,
49
- backgroundColor : charcoal [ 10 ] ,
50
+ backgroundColor : theme . palette . background . brand ?. default ,
50
51
gap : '10px' ,
51
52
color : charcoal [ 100 ]
52
53
} }
@@ -65,7 +66,8 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
65
66
sx = { {
66
67
borderRadius : '0.2rem' ,
67
68
gap : '10px' ,
68
- color : charcoal [ 100 ]
69
+ color : charcoal [ 100 ] ,
70
+ backgroundColor : theme . palette . background . cta ?. default
69
71
} }
70
72
onClick = { ( ) => handleClone ( details ?. name , details ?. id ) }
71
73
disabled = { isCloneDisabled }
@@ -86,14 +88,20 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
86
88
< ActionButton
87
89
sx = { {
88
90
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 ,
91
94
gap : '10px' ,
92
95
width : '100%'
93
96
} }
94
97
onClick = { ( ) => onOpenPlaygroundClick ( details . id , details . name ) }
95
98
>
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
+ />
97
105
Open in Playground
98
106
</ ActionButton >
99
107
0 commit comments