patternfly / patternfly/patternfly-react

[Spike] - investigate friendly names for all icon sets

未关闭
#12,209 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

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

描述

Instead of needing to have prefixed icons e.g. "RhUiArrowDownIcon" and "RhMicronArrowDownIcon" and "ArrowDownIcon", see how feasible it is to create a single "ArrowDownIcon" that has an additional "set" property to control which source path data is rendered.

Should be possible in the writeIcons script before exporting everything, just need to be careful in mapping everything and ensure that icons are named consistently (no arrow-down and down-arrow icons because they would be mapped differently). Need to determine a fallback order for sets (pf/fa > rh-ui > rh-microns > etc?) and default set. Need to figure out documentation because not all icons will have support or data for all sets, and icons may have different default sets.


Jira Issue: PF-3403

贡献指南

打开贡献指南

从这里开始

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

调研方向

从 issue 中提到的 writeIcons 脚本开始,跟踪图标名称和源路径在导出前是如何进行映射的。评估一致的名称映射、集合选择、fallback 顺序和默认行为,然后记录可行性、不受支持的集合组合以及由此产生的 API 决策。

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

评估

技术栈
react, typescript
领域
frontend
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

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