v6: allow combobox to be built from native form elements
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- html, javascript
- Área
- accessibility, frontend
Línea de trabajo
Start by comparing the proposed native input-and-datalist markup with the existing v6 Forms combobox example linked in the issue. Determine the scope needed for JavaScript to support this simpler markup while retaining the current customizable syntax; done means the API and required accessibility behavior are agreed, since the issue does not specify implementation files or tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Prerequisites
- I have searched for duplicate or closed feature requests
- I have read the contributing guidelines
Proposal
Maybe this is too big a change since we're already in alpha, but I just tried the new combobox form component out today. I noticed that it's extremely verbose, but also that it's really just a well-styled version of an <input> with a <datalist>.
Since this is a JS-powered component, there's no need for the base markup to be so verbose. IMO having markup something like the following would be preferable to the example given in the docs.
<div class="form-field">
<label for="country">Combobox</label>
<input name="country" id="country" class="combobox-input" list="countryList" placeholder="Select a country…"/>
<datalist id="countryList">
<option value="au">Australia</option>
<option value="ca">Canada</option>
<option value="uk">United Kingdom</option>
</datalist>
</div>
Given that HTML, the JavaScript can hook onto the .combobox-input class to build the menu structure, trigger button/caret SVG, and (optional) search input, instead of requiring authors to include it all. Authors would remain free to use the current syntax to manually build out their comboboxes if they require more customization.
Motivation and context
- Fallback: these are native HTML elements so will work even without JS
- Guaranteed accessibility: the JS can ensure proper roles and ARIA attributes are added to menus and trigger buttons
- Intuitive markup: these are native HTML elements so the input name, option values, etc. are immediately clear to authors
- Lenguaje dominante
- JavaScript
- Estrellas
- 175k
- Forks
- 78.9k
- Merge medio
- 4 d 2 h
- PR fusionados (30 d)
- 89
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de twbs/bootstrap
-
v6: Minified bootstrap.min.css is missing header infoPosiblemente ocupada @lazerg la tomó hoy. Abiertobug build confirmed has-pr v6
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Regression in v6.0.0-alpha.2: fly-out submenus shrink to `min-width`Posiblemente ocupada @keshav-hue la tomó hoy. Abiertobug confirmed css has-pr regression v6
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
twbs/bootstrap#43494 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
.menu-translucent for datepickerAbiertocss docs feature js v6
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
twbs/bootstrap#43488 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug confirmed css has-pr v6
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
twbs/bootstrap#43484 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug confirmed css has-pr v6
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
twbs/bootstrap#43483 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de twbs/bootstrap
Issues similares
-
accessibility bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
quarto-dev/quarto-cli#15440 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
crxjs/chrome-extension-tools#1261 ·
-
support
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
01 type: bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
conorbronsdon/avoid-ai-writing#559 ·
Los mantenedores suelen responder en 1 día