patternfly / patternfly/patternfly-react

Checkbox/Radio - allow flow content as body

未关闭
#9,111 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Pinned
主要语言
TypeScript
星标
862
派生
392
平均合并
4 天 8 小时
30 天内合并 PR
9

描述

Is this a new component or an extension of an existing one?

Existing components, Checkbox and Radio.

Describe the feature

To allow flow content for their body prop. Currently it's wrapped in a span element, which only admits phrasing content.

Are there visuals for this feature? If applicable, please include examples for each state and for varying widths

I don't think so.

Any other information?

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 Checkbox 和 Radio 组件开始,检查它们的 body prop 是如何被包装的,包括 issue 中提到的 isLabelWrapped 行为。确定是否可以在不破坏现有 label 行为的情况下支持 flow content;完成的标准是两个组件都接受预期的内容,或者 Checkbox 文档明确说明 body 内容必须是 phrasing content。

由索引模型根据 Issue 内容生成。

评估

技术栈
react, typescript
领域
frontend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。