Open pixelzoom opened 1 month ago
Looks like the CloseButton change was pushed as part of work related to GrabDragInteraction: https://github.com/phetsims/scenery-phet/commit/4d7f8fbc55644792dedc6d5c73ea15426fc6b643
You should look for usages of labelContent
too as part of this issue.
In general I think this issue is quite simple, you just need to overwrite accessibleNameBehavior
to forward the accessibleName value to where it should go. The default is defined here: https://github.com/phetsims/scenery/blob/bfa0d2e25d033cf44e688b2633f2492690f97df0/js/accessibility/pdom/ParallelDOM.ts#L3265-L3277
Are we also going to have a similar issue in sun?
@zepumph asked:
Are we also going to have a similar issue in sun?
Yes. In the first comment, I said:
I'm creating this issue in scenery-phet, but it's relevant to all places where accessibleName should be used.
This issue overlaps with:
Related to https://github.com/phetsims/models-of-the-hydrogen-atom/issues/67 ...
I'm creating this issue in scenery-phet, but it's relevant to all places where accessibleName should be used.
I asked about the different between
innerContent
andaccessibleName
. @jessegreenberg replied in Slack#DM:There is current inconsistency in which API is used. Some common-code components are setting
innerContent
instead ofaccessibleName
. And this has been causing confusion while trying to implement accessible names in MOTHA https://github.com/phetsims/models-of-the-hydrogen-atom/issues/67. @jessegreenberg and I think that we should be usingaccessibleName
(the higher-level API) whenever possible, which means changinginnerContent
toaccessibleName
.An incomplete list of examples: