-
Notifications
You must be signed in to change notification settings - Fork 12
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
decide on consistent term for ComboBox's list #440
Comments
"listbox popup" https://www.w3.org/TR/wai-aria-practices/examples/combobox/aria1.1pattern/listbox-combo.html So perhaps we should use I'm also noticing that the ComboBoxList looks very similar to the joist PhET menu popup: Maybe we should have a SUN common code file that shows a number of choices that highlight on rollover and allow you to select them. I'm sure we will need this list component in other sims as well. Come to think of it--it seems the combo box list box is a lot like a vertical radio button group. Not sure if that helps. |
I also like EDIT: So maybe that means |
At https://www.w3.org/TR/wai-aria-1.1/ I see a few usages of "list box" in documentation so |
@samreid said
I do not have time to investigate this. That's the topic of #10, which has been sitting around since Sept 2013. @jessegreenberg said:
Aria unfortunately does not use camelcase; by convention, it turns everything to lowercase. For example see https://www.w3.org/TR/wai-aria-practices/#menu. Combo Box -> combobox, Menu Bar -> menubar, List Box -> listbox. That convention is not a good fit for PhET, and I recommend that we stick with camelcase. So... From the above comments, I surmise that "list box" is the correct a11y term, and pheti-io would be happy using the a11y term. Since this is going to be its own .js file, Some options:
@jessegreenberg @samreid thoughts? |
I said:
@samreid is that really true? Will you be OK if this list does not have a tandem name that has "Node" suffix? I.e., this: this.listBox = new ListBox( ..., {
tandem.createTandem( 'listBox' )
} ); versus this: this.listNode= new ListNode( ..., {
tandem.createTandem( 'listNode' )
} ); |
Yes, |
@samreid Could you please identify which option in #440 (comment) you prefer? I'm not a fan of If we went with //ComboBoxListBox.js
ariaRole: 'listbox',
// ComboBox.js
this.listBox = new ComboBoxListBox( ..., {
tandem: tandem.createTandem( 'listBox' )
} ); |
That seems to be the best option, thanks! |
|
OK, I will proceed with |
Noted decisions in #430 (comment), closing. |
Part of #430 is to create ComboBoxListNode, using the standard "list" terminology for this part of combo box (see https://en.wikipedia.org/wiki/Combo_box). But in ComboBoxIO, I see that terminology is different - "popup" is used instead of "list":
A11y terminology is also slightly different. ComboBox.md describes a11y for combo box, and uses "listBox".
@samreid @jessegreenberg Thoughts on what term we should use for ComboBox's list, and what the class should be named for that list?
The text was updated successfully, but these errors were encountered: