From 41c38d6db8827824ca4ce58f560ee171b689c366 Mon Sep 17 00:00:00 2001 From: arimieandreea Date: Thu, 7 May 2026 16:09:37 +0300 Subject: [PATCH] fix(hotspot): avoid setting hovercolor in view and eval mode PIE-435 --- packages/hotspot/src/hotspot/index.jsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/hotspot/src/hotspot/index.jsx b/packages/hotspot/src/hotspot/index.jsx index 87b14bd52e..4422d5e910 100644 --- a/packages/hotspot/src/hotspot/index.jsx +++ b/packages/hotspot/src/hotspot/index.jsx @@ -94,21 +94,16 @@ class HotspotComponent extends React.Component { } = this.props; const { showCorrect } = this.state; const isEvaluateMode = mode === 'evaluate'; + const isGatherMode = mode === 'gather'; const showCorrectAnswerToggle = isEvaluateMode && !responseCorrect; const showRationale = rationale && (hasText(rationale) || hasMedia(rationale)); const showTeacherInstructions = teacherInstructions && (hasText(teacherInstructions) || hasMedia(teacherInstructions)); return ( - + {showTeacherInstructions && ( - + )} @@ -138,7 +133,7 @@ class HotspotComponent extends React.Component { dimensions={dimensions} imageUrl={imageUrl} hotspotColor={hotspotColor} - hoverOutlineColor={hoverOutlineColor} + hoverOutlineColor={isGatherMode ? hoverOutlineColor : undefined} selectedHotspotColor={selectedHotspotColor} multipleCorrect={multipleCorrect} outlineColor={outlineColor}