role="switch"

Night mode

Test Results

OS Browser Screen Reader Results
macOS Big Sur Version 11.4 Safari Version 14.1.1 VoiceOver Utility Version 14.1.1 The switch role is announced when tabbing to the control or reading with the VoiceOver keys
macOS Big Sur Version 11.4 Chrome Version 91.0.4472.164 VoiceOver Utility Version 14.1.1 The switch role is announced when tabbing to the control or reading with the VoiceOver keys
iOS 14.6 Safari VoiceOver Announced as "checkbox unchecked" when you swipe to the control
Windows 10 Chrome Version 91 NVDA 2020.4 Announced as "checkbox not checked" when reading with Tab or Arrow keys
Windows 10 Firefox 78.11 NVDA 2020.4 Announced as "checkbox not checked" when reading with Tab or Arrow keys
Windows 10 Edge Version 91 NVDA 2020.4 Announced as "checkbox not checked" when reading with Tab or Arrow keys