From aa744b7fd770fae320fe2d4bc12c14f1bc9121d8 Mon Sep 17 00:00:00 2001 From: joshbermanssw Date: Mon, 28 Oct 2024 14:24:12 +1100 Subject: [PATCH] lg screen tool tips --- components/blocks/CompareBox.tsx | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/components/blocks/CompareBox.tsx b/components/blocks/CompareBox.tsx index f4bf844cb..c33410a67 100644 --- a/components/blocks/CompareBox.tsx +++ b/components/blocks/CompareBox.tsx @@ -6,6 +6,7 @@ import 'slick-carousel/slick/slick-theme.css'; import css from 'styled-jsx/css'; import Image from 'next/image'; import { tinaField } from 'tinacms/dist/react'; +import { IoMdInformationCircleOutline } from 'react-icons/io'; function hexToRgba(hex, alpha) { let r = parseInt(hex.slice(1, 3), 16); @@ -63,20 +64,26 @@ const CriteriaCard = ({ criteriaItems }) => { key={idx} className="py-3 flex relative" style={commonHeightStyle} - onMouseEnter={() => setHoveredItem(idx)} - onMouseLeave={() => setHoveredItem(null)} >

- {item.criteria} -

- {hoveredItem === idx && ( -
- {item.description} + {item.criteria} +
+ setHoveredItem(idx)} + onMouseLeave={() => setHoveredItem(null)} + /> + {hoveredItem === idx && ( +
+
+ {item.description} +
+ )}
- )} +
))}