microsoft / microsoft/TypeScript
Request: Way to target Compound Components (eg. React) in a theme specifically. (<MyComponent.*>)
まだ誰も着手していません。
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
Not sure if other libraries offer something similar, but react has this way of building compound components that result in a code like this:
I think this pattern is quite widely adopted, specially in UI component libraries and is quite versatile and powerful.
What I don't like about it that it becomes extremely hard to read
I would like the way to identify the compound components (slot components) - (or compound part of the name / or both) and set different color to them
so I can get something like
or
would this be possible?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
ソースファイル、テスト、エントリポイントは指定されていません。まず、要求されているテーマ対象化の動作を TypeScript が担っているのか、それともエディターまたは構文ハイライトのプロジェクトに属するのかを判断します。複合コンポーネントの名前またはその一部に個別のテーマカラーを適用できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100