Enhance semantic labels to hero section on discover screen

This commit is contained in:
Manuel Cortez
2025-11-17 22:30:49 -06:00
parent 2f307ee613
commit d0bfcb107d
+7 -3
View File
@@ -839,11 +839,15 @@ class _DiscoverScreenState extends State<DiscoverScreen>
? t.discover.movie
: t.discover.tvShow;
// Build semantic label for hero item
final heroLabel = isEpisode
? "${heroItem.grandparentTitle}, ${heroItem.title}"
: heroItem.title;
return Semantics(
label: "media-hero-${heroItem.ratingKey}",
identifier: "media-hero-${heroItem.ratingKey}",
label: heroLabel,
button: true,
hint: "Tap to play ${heroItem.title}",
hint: t.accessibility.tapToPlay,
child: GestureDetector(
onTap: () {
final clientProvider = context.plexClient;