@teachinglab/omd 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -317,6 +317,9 @@ export class omdStepVisualizerInteractiveSteps {
317
317
  * @private
318
318
  */
319
319
  setupStepInteractions(stepBox) {
320
+ // Store the original background color to restore on mouseleave
321
+ const originalBackgroundColor = stepBox.div.style.backgroundColor || '';
322
+
320
323
  // Hover effects
321
324
  stepBox.div.addEventListener('mouseenter', () => {
322
325
  stepBox.div.style.backgroundColor = omdColor.mediumGray; // Slightly darker version of explainColor
@@ -327,7 +330,8 @@ export class omdStepVisualizerInteractiveSteps {
327
330
  });
328
331
 
329
332
  stepBox.div.addEventListener('mouseleave', () => {
330
- stepBox.div.style.backgroundColor = 'transparent';
333
+ // Restore the original background color instead of setting to transparent
334
+ stepBox.div.style.backgroundColor = originalBackgroundColor;
331
335
  stepBox.div.style.transform = 'translateX(0)';
332
336
 
333
337
  // Call hover callback if provided
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teachinglab/omd",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "omd",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",