Skip to content
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

Merged
merged 44 commits into from
Jun 17, 2020
Merged

Combo box updates for 2.7.1 #3512

merged 44 commits into from
Jun 17, 2020

Conversation

thisisdano
Copy link
Member

@thisisdano thisisdano commented Jun 16, 2020

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)

@wbyoko ☝️ Does this need implementation guidance in uswds-site?

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 and select change. Now we fire proper change events on the <select>. (#3487)

@wbyoko ☝️This release note could probably use some work

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)

wbyoko added 30 commits May 26, 2020 12:17
for identifying the base select element
* it is enhanced to add the class and is not required markup
update placeholder and default to data attributes
closes #3477
closes #3482
* 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
…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
…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
@thisisdano thisisdano requested a review from wbyoko June 16, 2020 16:59
Copy link
Contributor

@wbyoko wbyoko left a 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.

Screenshot 2020-06-16 15 10 25

@thisisdano @Ben-Judy-Flexion In this situation of dragging should we disable the focus outline?

@thisisdano
Copy link
Member Author

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.

@wbyoko
Copy link
Contributor

wbyoko commented Jun 16, 2020

@thisisdano #3513

…n-list

USWDS Disable focus outline on drag
@thisisdano
Copy link
Member Author

Added a combo box implementation guidance PR here: uswds/uswds-site#978

@thisisdano thisisdano merged commit 7a89611 into develop Jun 17, 2020
@wbyoko wbyoko deleted the 10x-forms/combo-box-updates branch June 17, 2020 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants