From 74d37f1d45dc81456f3aecba1e8e2f7118c9a297 Mon Sep 17 00:00:00 2001 From: vcoppe Date: Mon, 23 Sep 2024 17:46:10 +0200 Subject: [PATCH] more aria labels --- .../lib/components/ElevationProfile.svelte | 40 ++--- website/src/lib/components/Footer.svelte | 2 +- .../src/lib/components/GPXStatistics.svelte | 148 +++++++++--------- .../src/lib/components/LanguageSelect.svelte | 2 +- website/src/lib/components/ModeSwitch.svelte | 1 + website/src/lib/components/Tooltip.svelte | 10 +- .../layer-control/LayerTreeNode.svelte | 1 + .../StreetViewControl.svelte | 14 +- .../toolbar/tools/routing/Routing.svelte | 21 +-- website/src/locales/en.json | 1 + 10 files changed, 116 insertions(+), 124 deletions(-) diff --git a/website/src/lib/components/ElevationProfile.svelte b/website/src/lib/components/ElevationProfile.svelte index 430fe940..523b262f 100644 --- a/website/src/lib/components/ElevationProfile.svelte +++ b/website/src/lib/components/ElevationProfile.svelte @@ -626,15 +626,13 @@ bind:value={elevationFill} > - - - {$_('chart.show_slope')} + + - - - {$_('chart.show_surface')} + + @@ -650,23 +648,21 @@ value="speed" aria-label={$velocityUnits === 'speed' ? $_('chart.show_speed') : $_('chart.show_pace')} > - - - - {$velocityUnits === 'speed' ? $_('chart.show_speed') : $_('chart.show_pace')} - + + - - - {$_('chart.show_heartrate')} + + - - - {$_('chart.show_cadence')} + + - - - {$_('chart.show_temperature')} + + - - - {$_('chart.show_power')} + + diff --git a/website/src/lib/components/Footer.svelte b/website/src/lib/components/Footer.svelte index 7aa1497d..a460c7bd 100644 --- a/website/src/lib/components/Footer.svelte +++ b/website/src/lib/components/Footer.svelte @@ -11,7 +11,7 @@
- + - {$_('toolbar.routing.reverse.tooltip')} - + - {$_('toolbar.routing.route_back_to_start.tooltip')} - + - {$_('toolbar.routing.round_trip.tooltip')}
diff --git a/website/src/locales/en.json b/website/src/locales/en.json index fa21aef2..4d2f463f 100644 --- a/website/src/locales/en.json +++ b/website/src/locales/en.json @@ -54,6 +54,7 @@ "street_view_source": "Street view source", "mapillary": "Mapillary", "google": "Google", + "toggle_street_view": "Street view", "layers": "Map layers...", "distance_markers": "Distance markers", "direction_markers": "Direction arrows",