Repository navigation
Added alt text to the graph and timetable images in the export modal - #1854
Open
danielrafailov wants to merge 1 commit into
Open
danielrafailov wants to merge 1 commit into
danielrafailov wants to merge 1 commit into
Conversation
Coverage Report for CI Build 47014301793Coverage increased (+0.05%) to 63.347%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
The alt text for the exported image, split into its own PR as you suggested when I first outlined the graph accessibility work. Before this change, the preview image in the export modal had no
altattribute, on both the Graph and Grid pages, so VoiceOver skipped over it entirely. A screen reader user opening Export wouldn't know there was a preview at all, let alone what it showed or which session's timetable it was.Changes:
export.tsx:imageSessionstate, which is set when a timetable image loads, and is passed toGridImageas a newsessionprop.ExportModal.test.js): the graph image's alt text, the timetable image's alt text for its session, and that switching sessions updates it (to Spring and back to Fall).I tested with VoiceOver on both pages, including switching sessions. Nothing changes visually.
Screenshots of your changes (if applicable)
Chrome Accessibility pane for the exported graph image, before the change (no





alt, so it has no name and VoiceOver skips it):VoiceOver on the exported graph image, after the change:
Chrome Accessibility pane for the exported timetable image, before the change (no
alt, so it has no name and VoiceOver skips it):VoiceOver on the exported timetable image, after the change:
VoiceOver on the exported timetable image after switching sessions, after the change:
Type of Change
(Write an
Xor a brief description next to the type or types that best describe your changes.)Checklist
(Complete each of the following items for your pull request. Indicate that you have completed an item by changing the
[ ]into a[x]in the raw text, or by clicking on the checkbox in the rendered description on GitHub.)Before opening your pull request:
After opening your pull request:
Questions and Comments