Last active
January 13, 2026 11:14
-
Star
(134)
You must be signed in to star a gist -
Fork
(47)
You must be signed in to fork a gist
-
-
Save luxplanjay/6f6936b1bba7afe006fa9317b07b6045 to your computer and use it in GitHub Desktop.
Visually hidden CSS pattern
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately, I found that setting both
widthandheightto1pxmay not work properly for the focus-only links in iOS VoiceOver.The VO will announce it once reached, but it won't receive the DOM focus. On click, some internal "clickability" check won't mark the link as the event's target. That'll cause the app to ignore any custom click handlers with default prevention.
After I leave just the
widthor just theheight, the VO navigation works better, and the link is marked as a target.