Comments (6)
(Added to the project's Trello icebox.)
from uswds.
Yeah, <select multiple>
is a terrible user experience, and browsers have done little to make it better, despite new UI/support for various HTML5 elements in the past few years.
Other very commonly used libraries include Chosen and Select2. Many of these solutions, notably, can be used for more than just multi-select. Specifically, what is often called "suggest" or "autocomplete".
I'll then just offer a differentiation there. "autocomplete" implies you are limited to the options being displayed, while "suggest" implies that you can also add an item that does not appear in the list (and it possibly becomes part of the list for the future).
And then you can add "multiple" into the mix, and this gives you a wide variety of use cases.
from uswds.
I've used Chosen, and while I like the interaction model, I had a couple concerns (and so actually removed it from the FEC project):
-
- It didn't seem to work with keyboard navigation, so not really accessible
-
- It was really cludgy to override the CSS and style it in a way that blended in with the site style
from uswds.
Without suggesting a specific implementation, a select-box-with-autocomplete component would be super valuable.
from uswds.
+1 for this idea.
from uswds.
Related discussion: 18F/accessibility#48
from uswds.
Related Issues (20)
- Draft release notes for 3.7.1 HOT 1
- Create draft of revised accessibility page HOT 3
- USWDS - Feature: Configurable text for usa-file-input HOT 1
- USWDS - Bug: Incorrect background color for header icons
- USWDS - Dependencies: Update gulp-mocha
- USWDS - Bug: Removing layout-grid dependency causes style conflicts. HOT 1
- USWDS - Feature: DatePicker Translatable Days and Months HOT 2
- Web Components: Release beta version of at least one Component
- USWDS - Bug: Multiple Tables with Default Sort on Same Page Not Working
- USWDS - Docs: Update 18f.gov references
- CC a11y audit - date RANGE picker component
- CC a11y audit - validation component
- CC a11y audit - time picker component
- CC a11y audit - range slider component
- CC a11y audit - summary box component
- CC a11y audit - process list component
- USWDS - Bug: Date Picker and Date Range Picker not being reset HOT 2
- USWDS - Date Picker: Provide helpful error feedback when incorrect format is entered.
- USWDS - Date Picker: Implement conditional formatting (Consider adding input mask functionality):
- USWDS - Bug: File Input not loading modified HTML until refresh HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uswds.