base: Radio has no LabelFunc or HintFunc, unlike Checkbox and Button
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
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.
- 主要言語
- Go
- スター
- 684
- フォーク
- 41
- 平均マージ
- 8時間 8分
- マージ済み PR(30日)
- 911
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nsgo-dev/nsgo のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
macos: TestInputMethodCommitAndSinkCandidates times out waiting for focus after other window tests対応中かも @houko が今日担当しました。 オープン
nsgo-dev/nsgo#2157 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
linux: a fitted panel realized before its first fit keeps its options size対応中かも @houko が今日担当しました。 オープン
nsgo-dev/nsgo#2096 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
apple: TestWebMuteSuspendsMedia aborts the test process removing observers it never added対応中かも @oneo-me が今日担当しました。 オープン
nsgo-dev/nsgo#2053 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
nsgotest: no step clicks a tray icon, so a tray's menu and panel cannot be tested対応中かも @houko が今日担当しました。 オープン
nsgo-dev/nsgo#2051 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
peterstace/simplefeatures#726 ·
-
area: import bug go good first issue priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
fukubie/StockLlama#69 ·
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
cloverworks-hq/rumpty-cli#95 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
pulseaiclub/phi#615 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信