feat: modernize Badge according to MD3
维护者通常 7 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 58/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- react-native, typescript
- 领域
- mobile
调研方向
从现有的 Badge 组件开始,将其当前的尺寸、内边距、排版和溢出行为与链接的 Material Design 3 badge 规范进行比较。完成标准是:无子元素的 badge 渲染为 6dp 的圆点,带标签的 badge 渲染为 16dp 的胶囊,间距和文本大小使用指定值,并且长标签遵守 16x34dp 的限制。
由索引模型根据 Issue 内容生成。
描述
The goal is to modernize the Badge component to the latest Material Design specs by reusing theme tokens (shape, typography, colors etc).
Current state
Badge
MD3 spec: Badges
Specs link: https://m3.material.io/components/badges/specs
Color tokens
- Background
error✅ - Label text
onError✅
Spacing / sizing
- Default
sizeis 20dp. MD3 defines small badge at 6dp (no label) and large badge at 16dp (with label) - No small/large distinction. Size should be determined automatically: 6dp when no children, 16dp when children are present
-
paddingHorizontal: 3. Spec requires 4dp between badge edge and text -
fontSize = size * 0.5yields 8sp at 16dp. Spec requires 11sp for large badge label text - Large badge max character count size (16x34dp) not handled; text currently overflows unconstrained
Behavior
- No automatic small vs large variant. Component should render as a 6dp dot when childless and as a 16dp pill when a label is provided
- 主要语言
- TypeScript
- 星标
- 14.5k
- 派生
- 2.2k
- 平均合并
- 6 天 12 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
callstack/react-native-paper 的其他 Issue
-
Menu ignores the keyboard when it mounts while the keyboard is already open可能已有人在做 @manchoudhary 于 21 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
callstack/react-native-paper#5096 ·
维护者通常 7 天内回复
-
Color Picker Popup Is Obscured On "Guides -> Theming -> Creating Dynamic Theme Colors" Documentation On Both v5 and v6可能已有人在做 @fatihcvs 于 16 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
callstack/react-native-paper#5093 ·
维护者通常 7 天内回复
-
Tooltip: onPress event object is not propagated to parent component on native可能已有人在做 @Shevilll 于 108 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 74/100
callstack/react-native-paper#5003 ·
维护者通常 7 天内回复
-
Snackbar stays mounted after `visible=false` under new architecture (iOS + Android)可能已有人在做 @momomuchu 于 96 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
callstack/react-native-paper#4951 ·
维护者通常 7 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
callstack/react-native-paper#4881 ·
维护者通常 7 天内回复
查看 callstack/react-native-paper 的全部 Issue
相似的 Issue
-
area:docs bug triage:confirmed
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
anomalyco/models.dev#8862 · 1 条评论 ·
维护者通常 1 天内回复
-
fix(data-lake): wizard source step still previews the local slug, not the server-disambiguated one可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭data-lake
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
ready-for-triage
难度 1/5 1 小时以内 新手友好度 88/100
konflux-ci/konflux-ui#1596 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement good first issue priority: low size: XS
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复