diff --git a/app/components/ui/Cards/OppEventCard.module.scss b/app/components/ui/Cards/OppEventCard.module.scss index 6383d849f..3c135af66 100644 --- a/app/components/ui/Cards/OppEventCard.module.scss +++ b/app/components/ui/Cards/OppEventCard.module.scss @@ -8,7 +8,6 @@ width: 100%; overflow: hidden; position: relative; - cursor: pointer; &:focus-within { outline: 3px solid $black; @@ -18,6 +17,10 @@ flex-direction: column; } + &:hover { + background: $surface-secondary; + } + @media screen and (max-width: $break-tablet-l) { flex-direction: column; } diff --git a/app/components/ui/Cards/OppEventCard.tsx b/app/components/ui/Cards/OppEventCard.tsx index d05cfaabb..e9c26c2c3 100644 --- a/app/components/ui/Cards/OppEventCard.tsx +++ b/app/components/ui/Cards/OppEventCard.tsx @@ -19,6 +19,10 @@ export const OppEventCard = (props: OppEventCardProps) => { details: { title, id, calendarEvent, imageUrl }, sectionType, } = props; + + const topLevelSlug = sectionType === "event" ? "events" : "opportunities"; + const fullSlug = `/${topLevelSlug}/${id}`; + return (
+ {content} +
+ ); + } + // Links that follow same visual guidelines as buttons if (href) { const isExternalLink = !href.startsWith("/");