From 05962260540b9d16f89d8eee06e39ae6a96cc75f Mon Sep 17 00:00:00 2001 From: Nick Visutsithiwong <2823112+nickvisut@users.noreply.github.com> Date: Fri, 30 Aug 2024 16:09:32 -0700 Subject: [PATCH 1/3] fix high priority label w/out transition --- src/components/MapListCard.tsx | 42 ++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/src/components/MapListCard.tsx b/src/components/MapListCard.tsx index c0cd952..9e7c944 100644 --- a/src/components/MapListCard.tsx +++ b/src/components/MapListCard.tsx @@ -56,12 +56,12 @@ const MapListCard: React.FC = ({ } return (
-
-
+
+
{school.priority && (
-
-
- {students ? students.value : "N/A"} Students -
-
- {frl ? frl.value : "N/A"}% Free and Reduced Lunch -
-
- {ell ? ell.value : "N/A"}% English Language Learners + {isExpanded && ( +
+
+ {students ? students.value : "N/A"} Students +
+
+ {frl ? frl.value : "N/A"}% Free and Reduced Lunch +
+
+ {ell ? ell.value : "N/A"}% English Language Learners +
+ + Learn More +
- - Learn More - -
+ )}
Date: Fri, 30 Aug 2024 17:52:51 -0700 Subject: [PATCH 2/3] attempt to use transition-behavior instead to show/hide --- src/components/MapListCard.tsx | 38 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/components/MapListCard.tsx b/src/components/MapListCard.tsx index 9e7c944..a01755c 100644 --- a/src/components/MapListCard.tsx +++ b/src/components/MapListCard.tsx @@ -56,7 +56,7 @@ const MapListCard: React.FC = ({ } return (
@@ -81,25 +81,25 @@ const MapListCard: React.FC = ({
- {isExpanded && ( -
-
- {students ? students.value : "N/A"} Students -
-
- {frl ? frl.value : "N/A"}% Free and Reduced Lunch -
-
- {ell ? ell.value : "N/A"}% English Language Learners -
- - Learn More - +
+
+ {students ? students.value : "N/A"} Students
- )} +
+ {frl ? frl.value : "N/A"}% Free and Reduced Lunch +
+
+ {ell ? ell.value : "N/A"}% English Language Learners +
+ + Learn More + +
Date: Fri, 30 Aug 2024 17:59:20 -0700 Subject: [PATCH 3/3] tweak list's card expand/collapse transition --- src/components/MapListCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/MapListCard.tsx b/src/components/MapListCard.tsx index a01755c..0c16c4d 100644 --- a/src/components/MapListCard.tsx +++ b/src/components/MapListCard.tsx @@ -82,7 +82,7 @@ const MapListCard: React.FC = ({
{students ? students.value : "N/A"} Students