base: Radio has no LabelFunc or HintFunc, unlike Checkbox and Button
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Context
base.Radio (base/radio.go:12) takes a fixed Label string but no LabelFunc, while its siblings do: base.Checkbox (base/checkbox.go:40) and base.Button (base/button.go:42) both accept LabelFunc func() string and pass it to core.View.LabelFunc. Radio has no HintFunc either, which Checkbox also has.
Why it matters
A radio whose accessible name depends on state can't keep it current. ui.FormRow with RoleRadio (since #1888) binds its row title through TitleFunc/LabelFunc, but for a radio row it can only read the bound label once at render, because base.Radio has nowhere to put the function. Screen readers then announce a stale name after the label changes.
Proposal
Add LabelFunc func() string and HintFunc func() string to base.Radio with the same meaning as on base.Checkbox (the function wins over the string when set), pass them through to the radio's core.View, and let ui.FormRow's radio role forward its bound label instead of reading it once.
Acceptance
- A
base.Radiowith aLabelFuncwhose result changes reports the new accessible name without a re-render of its parent, asbase.Checkboxdoes (a test like Checkbox's). ui.FormRowwithRoleRadioand a changingTitleFuncupdates the radio's accessible name.
- Lenguaje dominante
- Go
- Estrellas
- 684
- Forks
- 41
- Merge medio
- 8 h 8 min
- PR fusionados (30 d)
- 911
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin 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 nsgo-dev/nsgo
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
macos: TestInputMethodCommitAndSinkCandidates times out waiting for focus after other window testsPosiblemente ocupada @houko la tomó hoy. Abierto
nsgo-dev/nsgo#2157 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
linux: a fitted panel realized before its first fit keeps its options sizePosiblemente ocupada @houko la tomó hoy. Abierto
nsgo-dev/nsgo#2096 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
apple: TestWebMuteSuspendsMedia aborts the test process removing observers it never addedPosiblemente ocupada @oneo-me la tomó hoy. Abierto
nsgo-dev/nsgo#2053 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
nsgotest: no step clicks a tray icon, so a tray's menu and panel cannot be testedPosiblemente ocupada @houko la tomó hoy. Abierto
nsgo-dev/nsgo#2051 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de nsgo-dev/nsgo
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
peterstace/simplefeatures#726 ·
-
area: import bug go good first issue priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
fukubie/StockLlama#69 ·
-
Add `rumpty firewall create|rm`Abiertoenhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
cloverworks-hq/rumpty-cli#95 ·
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
pulseaiclub/phi#615 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día