From fac7c0f8f24b3fe25de4ab81331a80c0fabc4fdc Mon Sep 17 00:00:00 2001
From: Zoe <19900057+vpsx@users.noreply.github.com>
Date: Thu, 30 Nov 2023 15:56:37 -0500
Subject: [PATCH 1/4] Add mouseovers to bottom arrows in Scope of CF diagram
---
.../src/components/ScopeOfClinicalFocus.jsx | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/packages/client/src/components/ScopeOfClinicalFocus.jsx b/packages/client/src/components/ScopeOfClinicalFocus.jsx
index 5789c71..09116c7 100644
--- a/packages/client/src/components/ScopeOfClinicalFocus.jsx
+++ b/packages/client/src/components/ScopeOfClinicalFocus.jsx
@@ -69,6 +69,9 @@ export function ScopeOfClinicalFocus() {
Coping Skills Training
);
+ const culturallyResponsiveText =
Placeholder text for culturally responsive treatments
;
+ const culturallyAdaptedText =
Placeholder text for culturally adapted treatments
;
+ const culturallySpecificText =
Placeholder text for culturally specific and emergent supports
;
return (
@@ -165,6 +168,27 @@ export function ScopeOfClinicalFocus() {
Emergent Supports
+
+ {/* For the mouseover/mouseout on the bottom arrows, use transparent overlays,
+ bc otherwise moving cursor over the text triggers a mouseOut*/}
+
+
+ {popperText}
From a681083b278821d128b531bdb29df510ca303b71 Mon Sep 17 00:00:00 2001
From: Zoe <19900057+vpsx@users.noreply.github.com>
Date: Thu, 30 Nov 2023 16:14:44 -0500
Subject: [PATCH 2/4] Change Scope of Focus diagram colors
---
.../src/components/ScopeOfClinicalFocus.jsx | 41 ++++++++++++++++---
1 file changed, 36 insertions(+), 5 deletions(-)
diff --git a/packages/client/src/components/ScopeOfClinicalFocus.jsx b/packages/client/src/components/ScopeOfClinicalFocus.jsx
index 09116c7..0b02e69 100644
--- a/packages/client/src/components/ScopeOfClinicalFocus.jsx
+++ b/packages/client/src/components/ScopeOfClinicalFocus.jsx
@@ -1,6 +1,9 @@
import { useEffect, useRef, useState } from 'react';
import { Box, Paper, Popper } from '@mui/material';
+import { theme } from '../theme.jsx';
+import { alpha } from '@mui/material/styles';
+
export function ScopeOfClinicalFocus() {
// The interactive venn diagram as currently designed/requested
// does not make it very obvious that one can hover over the diagram text
@@ -77,8 +80,24 @@ export function ScopeOfClinicalFocus() {