Skip to content

Commit 62e41c7

Browse files
YuvalYuval
authored andcommitted
fix(EventCard): add button type and accessibility attributes for image opening
1 parent 030dcea commit 62e41c7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

03-Client/src/app/components/address-search/EventCard.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@ export function EventCard({
129129
{/* Action bar */}
130130
<div className="flex items-center justify-between mt-[10px] border-t border-[#d9d9d9] pt-[10px]" dir="ltr">
131131
{event.Picture ? (
132-
<button className="bg-[#d9d9d9] rounded-[5px] flex items-center justify-center cursor-pointer w-[32px] h-[26px]">
132+
<button
133+
type="button"
134+
onClick={() => window.open(event.Picture!, "_blank", "noopener,noreferrer")}
135+
className="bg-[#d9d9d9] rounded-[5px] flex items-center justify-center cursor-pointer w-[32px] h-[26px]"
136+
aria-label="פתח תמונה"
137+
>
133138
<IconImageSmall />
134139
</button>
135140
) : (

0 commit comments

Comments
 (0)