microsoft / microsoft/TypeScript

Request: Way to target Compound Components (eg. React) in a theme specifically. (<MyComponent.*>)

オープン
#62,040 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Awaiting More Feedback Suggestion
主要言語
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:

Image

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

Image

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

Image

or

Image

would this be possible?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

ソースファイル、テスト、エントリポイントは指定されていません。まず、要求されているテーマ対象化の動作を TypeScript が担っているのか、それともエディターまたは構文ハイライトのプロジェクトに属するのかを判断します。複合コンポーネントの名前またはその一部に個別のテーマカラーを適用できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react
領域
tooling
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。