-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implementing Keyboard Nav #2
Comments
@emily-phet, unfortunately, @jonathanolson's time is fairly tied up at the moment working on some common code to benefit all sims. I think it would be OK for @mbarlow12 to take a stab at things while @jessegreenberg is away. I will chat with @jonathanolson on Monday. |
@emily-phet I agree with @ariel-phet and will start looking into this tomorrow. How does this compare in priority to phetsims/john-travoltage#267? |
@mbarlow12, @jonathanolson is sick today. Let's try to touch base with him when he is better just to see if he has any concerns about keyboard nav (I am pretty sure that will no affect his progress and such). |
@ariel-phet Just to be clear - part of the goal here is for @jonathanolson to learn how to do this for sims he works on (these and future sims), not just to have these features implemented any way possible. Since there is very little custom implementation needed - it sounded like from Jesse's estimation much could be done with common code or patterns created in previous sims - this would likely take minimal time for @jonathanolson. I just assumed he would need a knowledgeable developer to partner with to ensure progress was as efficient as possible, and to notice quickly if any major hiccups came up. Does this change any comments you have above? @mbarlow12 Supporting implementation of keyboard navigation for Area Model: Intro and Area Model: Decimals is higher priority than phetsims/john-travoltage#267. We'll just need to sort out what that support should be. |
@emily-phet I need to speak with @jonathanolson about it...unfortunately he is also working on several common code projects that of high priority to sim production overall. Hopefully he is feeling better today and I can chat with him. |
@jonathanolson is going to collaborate with @mbarlow12 on this and check back in with me after 8 hours of work or so to judge how big of a time commitment is needed (might be done by then). @mbarlow12 please get in touch with @jonathanolson to arrange some collaboration times. |
Will do @ariel-phet. |
@jonathanolson worked through the keyboard navigation, and everything's looking pretty solid. Order is also correct. We should review in the next a11y meeting:
We can also discuss any other issues that pop up on Tues. JO will be joining as well. |
Latest a11y work is available with this link: https://www.colorado.edu/physics/phet/dev/html/area-model-introduction/1.0.0-dev.9/phet/area-model-introduction_en_phet.html?accessibility |
Looking good! I would tweak the order a bit. We moved the partition radio buttons to the panel with partial products to intentionally change the order someone might interact with the sim, so the tab navigation order should follow the progression you visually see on the screen a bit more closely. So, I think the order should be: green handle, partition line, factors, product, partial products, partition line, calculation, erase. The triangular focus highlight looks fine to me, but I was surprised it was a triangle. Then I noticed the pickers were rounded a bit, so I guess that's the direction we're going. I think it would be fine to only use rectangles and circles for focus highlights, personally. |
I don't know what the highlights are supposed to look like. Let me know if it should change, but I assumed that the highlights would typically be the "offset" shape. |
Implemented in master, can you verify? |
Thanks, that seems like an improvement. We can discuss more at tomorrow's keyboard nav meeting! |
Discussion at 2/27/18 meeting: Modified the order slightly so the erase button came just after interacting with the board/model, and the checkboxes to show numbers and gridlines would come after all other controls. @jonathanolson made this change during the meeting and everyone was happy with it. Final work to be done seems just to adjust the horizontal partition line so that up and down move it accordingly. |
Presumably this would be something that would be available for every "vertical" slider also? Would the left-right buttons work as they do now, or would those also be swapped? |
@jonathanolson I think the vertical interaction will only apply to this situation; however, the larger issue seems to be that the origin is at the top/left. Thus 'increasing' the value of the slider's Inverting this behavior (i.e. 'up' corresponds to decreasing the slider's value) could be confusing to users that rely on a screen reader or anyone accustomed to the typically features of an |
I agree this is the cause. Could an intermediary value Property for the other partition be used in this case so that gets incremented/decremented with up/down arrow keys respectively?
I think those should also be swapped. For it to behave like an accessible slider, the left and down arrow keys should decrement while the up and right arrow keys increment. |
From today's a11y meeting:
@jessegreenberg do you think an intermediate will still be necessary or just some custom functionality in the AccessibleSlider? |
@mbarlow12 I would still recommend an intermediate Property, I don't think inverting values is generally a feature that should be added to AccessibleSlider.js. |
So it will be fine in the future if a screen reader reports negative values? |
Yes that is OK. The reported value can also be completely modified with text, which I assume will be used in this case. The readout might be something like "Partition changed: 3 rows on top, 2 rows on bottom" |
Assigning myself, I'll apply the change. |
…er for the vertical partition line. See phetsims/area-model-introduction#2
Implemented. Should I put accessibility: true (or Should I mark the sim's package.json as "accessible", and/or should an a11y view be created? |
Sorry, I need to double check where we are on this.
Both would be great @jonathanolson, thanks! Let me know if you have concerns. |
Added view and flag. |
@ariel-phet Can you provide some guidance on how to arrange this?
In last Tuesday's keyboard navigation meeting, we discussed adding keyboard navigation to this sim (and Area Model: Decimals), ideally prior to final deployment. See list below.
It seemed like the four-way moveable object and the partition sliders would be the most challenging features for implementation, and @jessegreenberg had estimated these to be pretty straightforward to do. Is it possible @mbarlow12 and @jonathanolson could make some progress on this while @jessegreenberg is away? I'm just hoping to get this into the sims prior to deployment, no other rush from an a11y perspective.
Navigation order and element type:
Multiply Screen
Grid
Panels
Partition Screen
Grid
Panels
The text was updated successfully, but these errors were encountered: