-
Notifications
You must be signed in to change notification settings - Fork 6
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
Slider control heading might be out of order in PDOM #94
Comments
in the a11y view, and here in the actual html Does this seem right to you @terracoda? |
Thanks for checking @zepumph. Yes that looks right to me. I'll check this again with the screen reader consultant. Hoping to meet tomorrow. |
Alright thanks |
@zepumph, I do not know why, but in my session yesterday with a VO, the Slider Controls heading seems to come after the group of sliders. I will have to explore more myself, and get back to you on this. |
In 10/13/17 a11y meeting, we discovered that this could be related to the placement of |
@zepumph, I experienced this today. I heard the heading and the on-demand help text after the un-ordered list containing the sliders. |
In the above picture of the PDOM HTML, you see that the sliders is the only div that uses |
@terracoda can you see if it is fixed on |
@zepumph, the latest build sounds good to me without the Do you mind making this small update, so I can test it. Then we can see which is better, 1. no aria-labelleby or 2. a better placed aria-labelledby. <ul aria-labelledby="label-210-271-799-783-782">
...
</ul> |
@jessegreenberg how do I do this? Is It currently possible as part of the mixin? If not perhaps we should add it as part of phetsims/scenery#686. I'm thinking something like: new Node({
tagName: 'ul',
accessibleLabel: 'Slider Controls',
labelTagName: 'h3',
ariaLabeledBy: true,
}); html: <div tabindex="-1" id="container-210-271-799-783-782">
<h3 tabindex="-1" id="label-210-271-799-783-782">Slider Controls</h3>
<ul tabindex="-1" id="210-271-799-783-782" aria-labeledby="label-210-271-799-783-782">
<li tabindex="-1" id="container-210-271-799-783-782-744-762-745"><label tabindex="-1" id="label-210-271-799-783-782-744-762-745" for="210-271-799-783-782-744-762-745">V, Voltage</label><input id="210-271-799-783-782-744-762-745" tabindex="-1" step="0.1" min="0.1" max="9" role="slider" aria-valuetext="4.5 Volts" type="range"></li>
<li tabindex="-1" id="container-210-271-799-783-782-763-781-764"><label tabindex="-1" id="label-210-271-799-783-782-763-781-764" for="210-271-799-783-782-763-781-764">R, Resistance</label><input id="210-271-799-783-782-763-781-764" tabindex="-1" step="0.1" min="10" max="1000" role="slider" aria-valuetext="500 Ohms" type="range"></li>
</ul>
</div> |
@zepumph I think this is possible, outside of options there are functions The reason for complexity is that the value for var myNode = new Node({
tagName: 'ul',
accessibleLabel: 'Slider Controls',
labelTagName: 'h3'
});
// this node is aria-labelledby its own accessible label element
myNode.ariaLabelledByNode = myNode;
myNode.ariaLabelContent = AccessiblePeer.LABEL; There is documentation for these functions in |
@zepumph, |
@terracoda try out master now, the |
@zepumph, it might be extraneous information, but it is working fine. The un-ordered list containing the sliders is named as "list Slider Controls, two items". VO announces this on enter the list with the arrow keys and as exiting the list. Sounds good to me. Closing this issue. |
Sorry missed this issue in my notes from Sept 28 session with screen reader user.
Using Safari 11 Mac os x 10.12.6 (sierra) and Ohm's Law described version 1.4 Dev 12
User noted while looking for sliders that the slider control heading seems to be below controls?
@zepumph or @jessegreenberg, can you check that the Slider Controls heading comes before the controls?
This might already be fixed.
The text was updated successfully, but these errors were encountered: