From 6877153fc9428c1c1236d6585ad74ab9eb0c7558 Mon Sep 17 00:00:00 2001 From: fatmakhan0395 <145523589+fatmakhan0395@users.noreply.github.com> Date: Mon, 26 Feb 2024 12:01:15 -0800 Subject: [PATCH 01/51] Vfep 1164 and Vfep-1165 Fixed smf accessibility issues with go-to-community-focus-details-link And fixed unit tests. (#28176) * vfep-1164 fixed the go to community details accessibility link issue * #VFEP-1164 #VFEP-1165 #comment worked on go-to-community-focus-details link issues with accesibility --- .../gi/components/profile/JumpLink.jsx | 23 +++++-- .../containers/search/FilterBeforeResults.jsx | 66 ++++++++++--------- .../gi/sass/partials/_gi-profile-page.scss | 12 ++++ .../gi/sass/partials/_gi-search-controls.scss | 31 +++++++++ .../search/NameSearchForm.unit.spec.jsx | 4 +- 5 files changed, 97 insertions(+), 39 deletions(-) diff --git a/src/applications/gi/components/profile/JumpLink.jsx b/src/applications/gi/components/profile/JumpLink.jsx index 79018bc546c2..fc62a639463a 100644 --- a/src/applications/gi/components/profile/JumpLink.jsx +++ b/src/applications/gi/components/profile/JumpLink.jsx @@ -4,13 +4,23 @@ import scrollTo from 'platform/utilities/ui/scrollTo'; import recordEvent from 'platform/monitoring/record-event'; import { isProductionOfTestProdEnv } from '../../utils/helpers'; -export default function JumpLink({ label, jumpToId, iconToggle = true }) { +export default function JumpLink({ + label, + jumpToId, + iconToggle = true, + onClick, + dataTestId, + customClass, +}) { const jumpLinkClicked = e => { e.preventDefault(); scrollTo(jumpToId, getScrollOptions()); }; const handleClick = e => { + if (onClick) { + onClick(); + } jumpLinkClicked(e); recordEvent({ event: 'nav-jumplink-click', @@ -35,14 +45,17 @@ export default function JumpLink({ label, jumpToId, iconToggle = true }) { return ( -

- {iconToggle &&