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

Change description for Light Source. #76

Closed
pixelzoom opened this issue Nov 6, 2024 · 7 comments
Closed

Change description for Light Source. #76

pixelzoom opened this issue Nov 6, 2024 · 7 comments

Comments

@pixelzoom
Copy link
Contributor

pixelzoom commented Nov 6, 2024

In #67 (comment), @terracoda said:

The Light Source interaction is not being communicated as an on/off switch like in Molecules and Light. Are they not the same component?

They are not the same component. MOTHA uses scenery-phet's LaserPointerNode, which can be configured to use a RoundStickyToggleButton or RoundMomentaryButton. MAL has its own sim-specific component (no common code) called PhotonEmitterNode. It does some configuration of ARIA-related attributes, but I can't tell why or what parts are relevant for MOTHA -- there are no details in the code comments, and I can find no paper trail for the description design.

Also note that @jessegreenberg and I did considerable work on LaserPointerNode in phetsims/scenery-phet#877. That work was informed by the requirements provided by the description designers in our 10/15/2 MOTHA meeting. If something different is desired, then that issue should be reopened, and a general solution (based on MAL PhotonEmitterNode?) implemented in LaserPointerNode.

@pixelzoom pixelzoom changed the title Description for Light Source Change description for Light Source. Nov 7, 2024
@kathy-phet
Copy link

Initially, this looks like the common code RoundStickyToggleButton needs @jessegreenberg to work at the lower level scenery piece so the pdom implementation is appropriate for a sticky toggle kind of button.

@pixelzoom
Copy link
Contributor Author

11/7/24 design meeting: @DianaTavares @arouinfar @kathy-phet @terracoda @LindaStegemann @ariel-phet @KatieWoe @pixelzoom

@jessegreenberg will work on this. Likely down in RoundStickyToggleButton. Should probably be aria-role='switch'.

@jessegreenberg
Copy link
Contributor

This was done in phetsims/sun#913.

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Nov 8, 2024

@jessegreenberg I'm unclear on how to review this. Can you describe what the expected behavior is now? I don't see anything different in A11y View -- I was expecting to see ARIA state showing whether the toggle is on/off, similar to what you did for the expand/collapse button in Accordion Box. Or is there no change in A11y View, but change only in screen reader behavior?

To clarify... For MOTHA A11y View, here's what I see for the light source toggle button:

screenshot_3592

Here's what I see for an accordion box:

screenshot_3593

So I was expecting to see similar ARIA state information for toggle button.

@jessegreenberg
Copy link
Contributor

Correct, no visible changes in the a11y view yet - only screen reader behavior. The only aria attributes we display in the a11y view right now are aria-valuetext and aria-expanded. We will flesh that out in phetsims/chipper#1510.

If you would like, you can confirm these attributes are there by inspecting in the page.
image

@pixelzoom
Copy link
Contributor Author

Understood, thanks. Closing.

@kathy-phet
Copy link

Using NVDA, it says whether its "On" and "Off" which is great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants