forked from zotero/reader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- announce focused annotations in epub and snapshot similar to pdf - marking sidebar, toolbar and find popup with role="application" so screen readers use focus mode instead of reading mode, which is not appropriate to interact with clickable elements - make outline values visible for screen readers - improved aria-live message announced during search navigation to include the page number as well as the snippet of the result if provided. It relies on currentSnippet and currentPageLabel variables from FindState. - added currentSnippet and currentPageLabel to find results in EPUB and snapshots. Need to have it added to pdf too. - added role="navigation" to start containers of epub ranges so that screen readers indicate when one moves to a new page. It also enabled navigation via d/shift-d for NVDA and r/shift-r for JAWS to go to next/previous page as with PDFs. Semanticaly, it is not correct but this seems to be the best approach without adding nodes into the DOM, which will break CFIs. - views have a new _a11yVirtualCursorTarget variable, in which we record what node to make focusable and focus to help screen readers place virtual cursor there. It is set to the following: search match, the top of the page after scrolling (if not snapshot) or the node matching the outline value (for snapshot). When the focus returns into the content from elsewhere, _a11yVirtualCursorTarget will become focusable. It is removed on pointer down events to avoid interference with mouse interactions.
- Loading branch information
Showing
15 changed files
with
233 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.