microsoft / microsoft/TypeScript
Request: Way to target Compound Components (eg. React) in a theme specifically. (<MyComponent.*>)
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
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?
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Es werden keine Quelldateien, Tests oder Einstiegspunkte genannt. Beginne damit festzustellen, ob TypeScript für das angeforderte Verhalten zur Theme-Zielzuordnung zuständig ist oder ob es zu einem Editor- oder Syntax-Highlighting-Projekt gehört; als erledigt gilt die Aufgabe, wenn zusammengesetzte Komponentennamen oder -teile unterschiedliche Theme-Farben erhalten können.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- react
- Bereich
- tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 25/100