From 0921c606df8a3431947f04ea8b92b3855a8ee717 Mon Sep 17 00:00:00 2001 From: gnezim Date: Mon, 20 Apr 2026 22:01:37 +0300 Subject: [PATCH] Add aria-expanded to expandable FlightCard rows (a11y for screen readers) --- src/ui/flights/FlightCard.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/flights/FlightCard.tsx b/src/ui/flights/FlightCard.tsx index c4770b97..87abb785 100644 --- a/src/ui/flights/FlightCard.tsx +++ b/src/ui/flights/FlightCard.tsx @@ -211,6 +211,7 @@ export const FlightCard: FC = ({ ? { role: "button", tabIndex: 0, + ...(expandable ? { "aria-expanded": expanded } : {}), onClick: toggleExpanded, onKeyDown: (e: KeyboardEvent) => { if (e.key === "Enter" || e.key === " ") {