phetsims / scenery-phet

Reusable components based on Scenery that are specific to PhET simulations.
http://scenerystack.org/
MIT License
9 stars 6 forks source link

Essential Description for Group Sort #860

Closed terracoda closed 1 month ago

terracoda commented 4 months ago

From https://github.com/phetsims/mean-share-and-balance/issues/307#issuecomment-2206804824

For MSaB we are trying to sort out an accessible name for the group sort interaction, but it is a bit complicated.

In the case of the Group Sort, thus far,

The pieces we may need to describe the interaction. Using the Candy Bars as an example.

The aria role information we may need explore to scaffold operation of the interaction.

DRAFT IDEA FOLLOWS: Object details on focus we might need now and in the future

Details on grabbing

Details on releasing

terracoda commented 4 months ago

At the moment, we are only trying to get the object name and possible the group name to read out on focus and release.

Adding: It would be useful to know if the only aria-role available is

role="application" ,

and if so use aria-roledescripton to override that and provide something useful like: aria-roledescription = "sortable objects" "list sort", "object sort", "grab and drag", "grab and sort", etc.

terracoda commented 4 months ago

It would be good to review how the aria role description attribute is implemented for the grabbed objects in the single object grab and drag, e.g., the role on the grabbed yellow balloon.

zepumph commented 4 months ago

From discussion with @terracoda, here is the pattern we would like to see generally, and put into practice in MSAB:

Selecting:

roledescription:

Name:


Sorting:

Name:

Adding: The bolded items are our choices.

zepumph commented 4 months ago

Updates made above. This adds consistent accessible content, accessilbeName behavior, and aria-roledescriptions inside of the group sort common code. And @terracoda and I established a pretty awesome pattern above given that we are just implementing accessible names. @terracoda anything else needed for this issue? Please feel free to close from my end.

terracoda commented 1 month ago

No, I think this issues can be closed.

terracoda commented 1 month ago

Closing this issue. Please re-open if there is more to do.