-
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
Add Tier 1 description features #107
Comments
I will take a first pass at this to set up the boilerplate then assign to the design team for content. |
OK, the basics are in place as placeholders. Some but not all components are getting the names from the visual text. The a11y view looks something like this: If that is not helpful or difficult to read let me know and I won't do this again. But I thought this might be helpful as a starting point. @amanda-phet can you please let me know what content you would like in here? Or feel free to edit https://github.com/phetsims/trig-tour/blob/main/trig-tour-strings_en.json directly. Let me know if optional help text should be deleted or if I missed anything. |
Back to @jessegreenberg to implement the design from our last meeting. |
Notes and questions:
Is this the design we want for all AcordionBoxes, should this be moved to sun? I added I added I added model values for the sin, cos and tan function values so that they could be read out in the description with the same precision. I created TrigTourDescriber, to factor out some of the reusable code that describes the values of the simulation. The TrigTourDescriber is now created in the ScreenView, and passed to various view components. I created a new view component called AngleReadoutValue that manages the angle readout, units, and how many decimals to display - so that this logic could be used by both the visual and the descriptions. The summary details content is combined into a single sentence. This will support the description content, Voicing statement, and Only numerical values are read. When the sim shows special angle fractions, the Voicing and description will read numerical values. Can we review the strings together to understand the changes and review for i18n goals? |
…icing, and details content, see #107
This is complete and ready for a review. @amanda-phet @terracoda can you please review the behavior on main? I also asked on slack about reviewing the list in #107 (comment) in a meeting together. It has some questions about behavior, but also has notes about changes made for Tier 1 Description to document changes and scope of work. |
I think this list captures the key things from the notes I posted in slack.
No changes to the static control area description!
Currently, {{clockwise}} rotation of point on circle forms angle theta. Point on circle is in quadrant {{1}}; Angle theta equals {{50.0°}}; x equals {{0.643}}; y equals {{0.766}}; Sine equals {{0.766}}.
I was also hoping to easily add a description that describes which colored arrow is highlighted, but I think that is a detail that we can add as part of Tier 2.
Given @kathy-phet desire (very valiant and admirable) and current direction to voice the Values Accordion Box content, I think we need to do 2 things to make sure we are not swaying from a good design process:
Or maybe this is slightly better: I hope this makes sense. |
@jessegreenberg, I will open a separate issue about the description and voicing design pattern for accordion boxes. I need to check what i have done in the past. See #131 |
To be continued in #131.
We discussed this - It is unfortunate. We may create patterns that read the values in a general way. We also discussed having sim-specific patterns to make it simple to enumerate all values. We will need to make a call on whether we can spend time on it now. |
The description suggested above with some additions.
|
Discussion 1/23/25 (@terracoda added bold text to initial bullet items after meeting):
Decisions to implement: (1) Change the current details. We will not have the sentence that is dependent on the Values accordion box being open/closed. Instead, use this in all cases: Currently, {{cosine}} is selected. A {{clockwise}} rotation of point on circle forms angle theta. Point on circle is in quadrant {{1}}. (2) Change the description of the Play Area: An interactive circle with a radius of 1 is centered on a coordinate plane. A movable point on the circle defines an angle theta as the point is rotated counterclockwise or clockwise from the x-axis. A right triangle forms between the radius, the x-axis, and a vertical line from the point to the x-axis. The selected trigonometric function highlights the corresponding side or sides of the triangle being explored inside the circle. Below the circle, a collapsible graph plots the selected function versus theta. The graph has a corresponding movable point which can go off screen. (3) Add "Graph" to the accessible name of the graph accordion box, or add "Graph" to both the visual and accessible names, if others agree.
(4) Change help text for point on circle: Move point on circle to change theta. |
Changes in this list have been made. @terracoda @amanda-phet can you please review? |
In #101 it was decided that we are going to try to add Tier 1 description for trig-tour. That includes
The text was updated successfully, but these errors were encountered: