Skip to content

fix: include trail stats in accessibility labels - #18

Draft
janicduplessis wants to merge 1 commit into
mainfrom
@janic/issue-2-trail-card-label
Draft

fix: include trail stats in accessibility labels#18
janicduplessis wants to merge 1 commit into
mainfrom
@janic/issue-2-trail-card-label

Conversation

@janicduplessis

Copy link
Copy Markdown
Contributor

Description

Trail cards show distance, ascent, and estimated duration, but omitted those values from their accessibility labels. The card now reuses the same formatted strings for visible stats and its accessible name, keeping metric and imperial output aligned without changing layout or navigation.

Closes #2

Test plan

  • On the iOS Stim simulator, verified the same metric card label before and after the change.
  • Switched to imperial units and verified the label changed to 1.2 mi and 2300 ft while retaining the estimated duration.
  • Tapped the card and verified it still opens the matching trail detail screen.

Before

Agent-device label: Belvedere de la Tour Bleu, Mont-Tremblant, Hard, rated 5.0 out of 5

Before: Trails screen with the metric trail card

After

Agent-device label: Belvedere de la Tour Bleu, Mont-Tremblant, Hard, rated 5.0 out of 5, 1.9 km, 701 m of ascent, estimated duration 1:31:00

After: unchanged Trails screen with the expanded accessibility label

The screenshots are byte-identical, confirming the visible card remained unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Hackathon demo] Include visible trail stats in each card accessibility label

1 participant