-
Notifications
You must be signed in to change notification settings - Fork 923
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
Combo box updates for 2.7.1 #3512
Conversation
for identifying the base select element
* it is enhanced to add the class and is not required markup
* specs * styles * manage pristine selection state
…mouseover-selection # Conflicts: # src/js/components/combo-box.js
…disabled-combo-box # Conflicts: # src/js/components/combo-box.js
…box-data-attributes
…combobox-subsequent-selection # Conflicts: # src/js/components/combo-box.js
toggle list update tabindex
…-combobox-subsequent-selection # Conflicts: # spec/unit/combo-box/combo-box-change-event.spec.js # spec/unit/combo-box/combo-box.spec.js # src/js/components/combo-box.js
…-combobox-subsequent-selection # Conflicts: # spec/unit/combo-box/combo-box.spec.js
…combobox-subsequent-selection # Conflicts: # spec/unit/combo-box/combo-box.spec.js # src/js/components/combo-box.js
* reset selection on tab
USWDS-3474 Disabled Combo Box Enhancement
…ta-attributes # Conflicts: # spec/unit/combo-box/combo-box.spec.js
USWDS-3477 USWDS-3482 Combo Box Data Attributes
…ver-selection # Conflicts: # spec/unit/combo-box/combo-box.spec.js
USWDS-3490 Combo Box Mouseover Selection
…ox-subsequent-selection # Conflicts: # spec/unit/combo-box/combo-box.spec.js
needed for subsequent selection
fire events on clear highlight selected item on open make sure shift+tab does nothing
after adding new buttons for toggle and clear. we need new functions to support disable and enable.
remove hover/active styles
…combobox-subsequent-selection
…ox-subsequent-selection
…t-selection USWDS-3479 Combo Box Subsequent Selection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data-default-value and data-placeholder should get guidance updates. I'll work on that.
@thisisdano @Ben-Judy-Flexion In this situation of dragging should we disable the focus outline?
Yeah, I think it could be disabled for the drag/scroll. Looks like I'm going to get to the 2.7.1 release tomorrow, so if you have PR ready by then, I can include it. |
…n-list USWDS Disable focus outline on drag
Added a combo box implementation guidance PR here: uswds/uswds-site#978 |
Preview →
Show proper focus in combo box. Hover and keyboard events transfer focus to individual options, and now the styling reflects that. (#3493)
Disabled combo boxes remain disabled after enhancement. The
disabled
attribute now correctly results in a disabled combo box. (#3484)Use data attributes to set combo box placeholder and default.
The combo box now selects the first item of the combo box when no placeholder is present and no placeholder by default.We now use data attributes to set the default value (data-default-value
)and placeholder (data-placeholder
). (#3486)Improved combo box interactions. Allows list toggling with the toggle button, and adds a "clear input" button to start a subsequent combo box interaction. Makes a number of additional improvement to how the combo box handles changes and new selections. (#3505)
This PR follows up on the following combo box improvements:
Combo box now triggers a change event on
input
andselect
change. Now we fire proper change events on the<select>
. (#3487)We fixed the punctuation on the default combo box. Now there's no more colon, consistent with other input guidance. (#3473)
The combo box scrollbar works. Now you can scroll a combo box! (#3483)