Legg til tilgjengelegheitsetiketter i PWA
- Legg til role=img og aria-label på retningspil-canvas - Oppdater aria-label dynamisk med avstand ved val av tilfluktsrom - Legg til direction_arrow_description-streng i alle tre språk Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
fa4c379176
commit
1a72314e30
5 changed files with 12 additions and 1 deletions
|
|
@ -256,6 +256,8 @@ function updateSelectedShelter(isUserAction: boolean): void {
|
|||
].join(' \u00B7 ');
|
||||
|
||||
// Update mini arrow
|
||||
const miniArrow = document.getElementById('mini-arrow')!;
|
||||
miniArrow.setAttribute('aria-label', t('direction_arrow_description', dist));
|
||||
updateMiniArrow(selected.bearingDegrees - deviceHeading);
|
||||
|
||||
// Update compass view
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue