From 53aaed5fefd54103f5fedf47c706822746b03a2d Mon Sep 17 00:00:00 2001 From: debont80 Date: Tue, 30 Jun 2026 14:37:33 -0400 Subject: [PATCH] Fix M15: replace role=button divs with native button elements in LibraryView Both interactive headers in LibraryView used role="button" on divs, which is invalid when they contain child interactive elements (group header had nested All/None and Download buttons). - Group header (groupHead): split into an outer flex div + a native @@ -440,10 +456,7 @@ export function LibraryView(): React.JSX.Element { appearance="subtle" icon={} disabled={groupActionable === 0} - onClick={(e) => { - e.stopPropagation() - downloadGroup(row.items) - }} + onClick={() => downloadGroup(row.items)} > Download{groupActionable > 0 ? ` ${groupActionable}` : ''} @@ -729,13 +742,12 @@ function SourceCard({ const focus = useFocusStyles() return (
-
(e.key === 'Enter' || e.key === ' ') && onToggleExpand()} aria-expanded={expanded} + aria-label={source.title} > {expanded ? : }
@@ -755,7 +767,7 @@ function SourceCard({ {source.channel && source.channel !== source.title ? ` · ${source.channel}` : ''}
-
+ {expanded && children}
)