File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
Hyperlink ,
11
11
Icon ,
12
12
IconButton ,
13
+ IconButtonWithTooltip ,
13
14
useToggle ,
14
15
} from '@openedx/paragon' ;
15
16
import {
@@ -175,10 +176,12 @@ const CardHeader = ({
175
176
) : (
176
177
< >
177
178
{ titleComponent }
178
- < IconButton
179
+ < IconButtonWithTooltip
179
180
className = "item-card-button-icon"
181
+ variant = { isDisabledEditField ? 'light' : 'primary' }
180
182
data-testid = { `${ namePrefix } -edit-button` }
181
183
alt = { intl . formatMessage ( messages . altButtonEdit ) }
184
+ tooltipContent = { < div > { intl . formatMessage ( messages . altButtonEdit ) } </ div > }
182
185
iconAs = { EditIcon }
183
186
onClick = { onClickEdit }
184
187
// @ts -ignore
@@ -195,10 +198,11 @@ const CardHeader = ({
195
198
) }
196
199
{ extraActionsComponent }
197
200
{ readyToSync && (
198
- < IconButton
201
+ < IconButtonWithTooltip
199
202
data-testid = { `${ namePrefix } -sync-button` }
200
203
alt = { intl . formatMessage ( messages . readyToSyncButtonAlt ) }
201
204
iconAs = { SyncIcon }
205
+ tooltipContent = { < div > { intl . formatMessage ( messages . readyToSyncButtonAlt ) } </ div > }
202
206
onClick = { onClickSync }
203
207
/>
204
208
) }
You can’t perform that action at this time.
0 commit comments