You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For at ToggleSwitch-er skal leses opp av skjermlesere på en måte som best mulig gjenspeiler hvordan de ser ut og oppfører seg visuelt, anbefaler W3C å bruke role="switch". Skjermlesere leser da opp «på, bytt»/«av, bytt» i stedet for «markert, avmerkingsboks»/«ikke markert, avmerkingsboks» som leses opp nå.
«Switch role. A switch provides approximately the same functionality as a checkbox and toggle button, but makes it possible for assistive technologies to present the widget in a fashion consistent with its on-screen appearance.» https://w3c.github.io/aria/#switch
Fungerer som forventet når jeg tester med skjermleser (VoiceOver) i Safari og Chrome på Mac. Skjermleser leser nå opp «på, bytt»/«av, bytt» i stedet for «markert, avmerkingsboks»/«ikke markert, avmerkingsboks» 👍
For at ToggleSwitch-er skal leses opp av skjermlesere på en måte som best mulig gjenspeiler hvordan de ser ut og oppfører seg visuelt, anbefaler W3C å bruke role="switch". Skjermlesere leser da opp «på, bytt»/«av, bytt» i stedet for «markert, avmerkingsboks»/«ikke markert, avmerkingsboks» som leses opp nå.
«Switch role. A switch provides approximately the same functionality as a checkbox and toggle button, but makes it possible for assistive technologies to present the widget in a fashion consistent with its on-screen appearance.»
https://w3c.github.io/aria/#switch
https://www.w3.org/WAI/ARIA/apg/patterns/switch
Foreslår derfor å legge til role="switch" (i tillegg til type="checkbox") i input-elementet til ToggleSwitch-komponenten.
The text was updated successfully, but these errors were encountered: