This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contain offscreen contents in an invisible single-pixel onscreen element
- Solves reading issues in both NVDA and VoiceOver, due to lack of linebreaks - Being inside the parent element lets you add an outline (eg: to visually indicate focus) without it stretching off the side of the screen - 2px indent causes the beginning of the text to start outside the visible edge of the element - 1px would cause some subpixel bleedover, causing it to be visible - Disallowing line break causes the entire text to overflow, and fixes the NVDA & VoiceOver issues - Setting padding, margin, border, etc. to nothing so any potential visibility is removed in case it's being used on an element that may later appear on screen - Keeping absolute position so it doesn't affect the page flow, particularly of anyone who's already relying on it
- Loading branch information