Add aria-expanded to expandable FlightCard rows (a11y for screen readers)

This commit is contained in:
2026-04-20 22:01:37 +03:00
parent 50cc2350ab
commit 0921c606df
+1
View File
@@ -211,6 +211,7 @@ export const FlightCard: FC<FlightCardProps> = ({
? {
role: "button",
tabIndex: 0,
...(expandable ? { "aria-expanded": expanded } : {}),
onClick: toggleExpanded,
onKeyDown: (e: KeyboardEvent<HTMLDivElement>) => {
if (e.key === "Enter" || e.key === " ") {