patternfly / patternfly/patternfly-react
Icons - add support for custom icons
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 862
- フォーク
- 392
- 平均マージ
- 4日 8時間
- マージ済み PR(30日)
- 9
説明
Is this a new component or an extension of an existing one?
What is the existing component, if any?
Existing, MenuToggle, ToolbarFilter
When using PF tokens to create a custom theme, MenuToggle and ToolbarFilter use default icons in PF that currently cannot be changed via a prop since the prop does not exist, while components like Label, Alert, and Button, offer this functionality.
An alternative option was discussed at today's working session (cc @mcoker), which would include adding support for custom icons directly to react-icons and then importing any custom overrides.
Related: https://github.com/patternfly/patternfly-react/issues/10634
Describe the feature
A clear and concise description of the new feature. What is the expected behavior?
Are there visuals for this feature? If applicable, please include examples for each state and for varying widths
See below. MUI uses a different toggle icon for their menu toggle.
Include screenshots or links to Marvel or other mockups.
MUI:
PF:
Any other information?
Would it be possible to prioritize this work for an upcoming sprint to align with RHOAI priorities for the MUI theming effort @nicolethoen ?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず MenuToggle と ToolbarFilter コンポーネントの実装を確認し、次に issue #10634 と react-icons の拡張に関する議論を読んでください。ユーザーが合意済みで文書化された API を通じて両方のコンポーネントにカスタムアイコンを指定でき、Label、Alert、Button に既存のアイコン対応と一貫した動作になることが完了の条件です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- design, frontend
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100