From 3c2f489a3cb1c30f67e1e6b25fbf1248a6ca64d9 Mon Sep 17 00:00:00 2001 From: Carlos-Bolano Date: Sat, 25 Jan 2025 11:42:23 -0500 Subject: [PATCH 1/2] Add discernible text for screen readers in contact items --- src/app/components/Contact.js | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/app/components/Contact.js b/src/app/components/Contact.js index da63f8d..0b03fcd 100644 --- a/src/app/components/Contact.js +++ b/src/app/components/Contact.js @@ -9,33 +9,37 @@ import { import { faEnvelope } from "@fortawesome/free-solid-svg-icons" import "./contact.css" -function BlackIconWrapper({ icon, ...rest }) { +function BlackIconWrapper({ icon, arialabel, ...rest }) { return ( ) } -function RedIconWrapper({ icon, ...rest }) { +function RedIconWrapper({ icon, arialabel, ...rest }) { return ( ) } -function IconWrapper({ icon, bgColor, textColor, target, isEmail }) { +function IconWrapper({ icon, bgColor, textColor, target, isEmail, arialabel }) { return ( @@ -174,12 +178,13 @@ export default function Contact() { - - - - - + + + + + ) From 471359dd1b4e58e3f8402af492e1bb3da44120c5 Mon Sep 17 00:00:00 2001 From: Carlos-Bolano Date: Sat, 25 Jan 2025 11:44:21 -0500 Subject: [PATCH 2/2] Improve text-background contrast for better readability --- src/app/components/HomeGrid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/HomeGrid.js b/src/app/components/HomeGrid.js index ea57c71..c0f1a8d 100644 --- a/src/app/components/HomeGrid.js +++ b/src/app/components/HomeGrid.js @@ -87,13 +87,13 @@ export default function HomeGrid({ setCurrentGrid, animatedStyles }) { style={trails[0]} className='h-full w-full p-10 bg-[#e9c46a] border border-black flex flex-col items-center justify-center gap-3' > -
+
{name.slice(0, nameIdx).join("")}
-
+
{subheading.slice(0, subheadingIdx).join("")}