Closed terracoda closed 6 months ago
Pop Up Menu / Options Menu??
How's this @arouinfar?
We also kicked around the idea of a brief Basic Actions one-liner for crowded dialogs. I am not sure how it would look in the dialog, but here is one line of brief content.
Here's our original customized combobox example from Molarity:
Could be changed to: Change Solute
Assigning to @arouinfar for feedback, and tagging @jessegreenberg and @pixelzoom since we just discussed this for Gas Properties.
@arouinfar, if you think this is good, please assign to @jessegreenberg for implementation.
Open solutes [Space] or [Enter] OR "Open solutes options"
How about "Show solute choices" ?
Oh, I like that. I like avoiding techy words like "options".
Possible new default ComboBoxKeyboardHelpSection
Pop Up Menu / or customize like Change X??
@pixelzoom, what do you think of this for default ComboBox language?
Then Molarity could read like this: Change Solute
I like the default you've suggested for ComboBox.
I even think the default is good enough that customizing only the title may work. For example:
Change Solute
This would put less burden on developers and translators. The current API for customing requires specifying a title ("Change Solute"), singular form ("solute"), and plural form ("solutes"). It would be nice if we didn't need to incur that cost.
@pixelzoom, I agree that using a customized title combined with the word "choices" in the list is quite generalizable. I agree that the following could work for Molarity
Change Solute
Thanks for iterating on this @terracoda @pixelzoom. I really like the generalized "choice(s)" text and suggested defaults. Customizing the title will provide the necessary context on a sim-by-sim basis.
I think we're ready to update the implementation, so over to @jessegreenberg.
I just need to add the accessible content. It should be easy.
Change Solute
So, except for the heading, the generic version is the same.
Change X or Show Choices
I am not sure what the default/generic heading should be. I think "Show Choices" is better than "Pop Open Menu".
I changed the strings in the above commit. Since these are translatable, I had to choose how to make the change. I asked for help on the developer channel:
And decided to update the values in the strings file without changing the keys (requires significant work) or creating new key value pairs (means we would have unused key value pairs in the strings file.
@terracoda said:
I am not sure what the default/generic heading should be. I think "Show Choices" is better than "Pop Open Menu".
I made it so that the visual string and PDOM heading share the same string. @terracoda can you please review?
Sorry, for my confusion @jessegreenberg. This is a long issue now.
I didn't have a final confirmation of the title text from @arouinfar , but I think the following options for a default capture the spirit - note the I changed "Show Choices" to "Change Choice" in the heading.
The idea is that designers can substitute "X" or "Choice" with a word relevant to the sim. Also, a learner is selecting one thing from a list of choices, so the word in the title is singular.
When there is more than one combobox present on a screen or in a sim, the heading can be generalized to something more generic, "Change Choice" or something else.
Here's the visual and A11y versions for implementation:
Change X or Change Choice
Close without changing [[Escape]]
Change X or Change Choice
Great, thanks @terracoda! Here is what the visual and PDOM content looks like now, matching the above comment. Closing.
We noticed in Gas Properties that the default language for the ComboBox Keyboard Help dialog content is a little wordy and inconsistent, so we want to clean it up.