Skip to content

Make the graphtool screen reader friendly.#1396

Open
drgrice1 wants to merge 1 commit intoopenwebwork:PG-2.21from
drgrice1:graphtool-aria
Open

Make the graphtool screen reader friendly.#1396
drgrice1 wants to merge 1 commit intoopenwebwork:PG-2.21from
drgrice1:graphtool-aria

Conversation

@drgrice1
Copy link
Copy Markdown
Member

This sets the aria option from the JSXGraph library for all graphed objects. Thus objects are described as they are graphed.

I am sure this will still need some work, but this makes the graphtool at least basically accessible.

There is also a need to specifically set the tabindex for objects (usually to the empty string which is the closest thing to unsetting it that the JSXGraph library allows). Otherwise JSXGraph now sets that to -1 for everything and tries to focus those things with javascript and that is interfering with the graphtools own focus behavior. This is more of what was done in #1357.

Note that the aria labels are not translated. Although nothing for the graphtool is. The usual data attribute approach really would be a mess for this. There are a lot of strings. Translating the graphtool would take a lot of effort with the current methods for javascript translation.

This sets the `aria` option from the JSXGraph library for all graphed
objects. Thus objects are described as they are graphed.

I am sure this will still need some work, but this makes the graphtool
at least basically accessible.

There is also a need to specifically set the tabindex for objects
(usually to the empty string which is the closest thing to unsetting it
that the JSXGraph library allows).  Otherwise JSXGraph now sets that to
-1 for everything and tries to focus those things with javascript and
that is interfering with the graphtools own focus behavior. This is more
of what was done in openwebwork#1357.

Note that the aria labels are not translated.  Although nothing for the
graphtool is.  The usual data attribute approach really would be a mess
for this.  There are a lot of strings.  Translating the graphtool would
take a lot of effort with the current methods for javascript
translation.
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.

1 participant