Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate the visually hidden spans injected by javascript. #2631

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

drgrice1
Copy link
Member

The spans are simply added where needed. No javascript is needed for them to be in the page.

The "?" help label is changed to just "Help" in most cases. The "?" is usually not read by screen readers. Note that these all go through the helpMacro method and a help file template is rendered. The template can also set the ariaLabel stash value to override the default "Help" text.

Most pages shouldn't use the override though (I think). For example, on the "Accounts Manager" page the screen reader says something like "accounts manager heading level 1 link help link" (at least that is what Gnome Orca says for this). I don't think it should be read as "account manager heading level 1 link accounts manager help link". It increases the verbosity unnecessarily.

However, on the "Assignments" page the title of the page is the course title. So the default aria label is overridden with "Assignments Help", and the screen reader says something like "course title heading level 1 link assignments help link". Note the help title in the dialog was also changed to "Assigments Help". It still said "Course Home Help". It seems we missed this when the page name was changed.

Of course mileage will vary as to what different screen readers say on different systems and with different browsers.

I worked on this after the discussion in the meeting this week, not realizing that @somiaj would also work on this. See my comments on #2630.

The spans are simply added where needed.  No javascript is needed for
them to be in the page.

The "?" help label is changed to just "Help" in most cases.  The "?" is
usually not read by screen readers.  Note that these all go through the
`helpMacro` method and a help file template is rendered.  The template
can also set the ariaLabel stash value to override the default "Help"
text.

Most pages shouldn't use the override though (I think).  For example, on
the "Accounts Manager" page the screen reader says something like
"accounts manager heading level 1 link help link" (at least that is what
Gnome Orca says for this). I don't think it should be read as "account
manager heading level 1 link accounts manager help link".  It increases
the verbosity unnecessarily.

However, on the "Assignments" page the title of the page is the course
title.  So the default aria label is overridden with "Assignments Help",
and the screen reader says something like "course title heading level 1
link assignments help link".  Note the help title in the dialog was also
changed to "Assigments Help".  It still said "Course Home Help". It
seems we missed this when the page name was changed.

Of course mileage will vary as to what different screen readers say on
different systems and with different browsers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants