Global `h1`, `h2` etc styles affect devtools styles
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 499
- Forks
- 100
- Ø Merge
- 1 T. 17 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
TanStack Devtools version
v0.7.6
Framework/Library version
React v18.3.1
Describe the bug and the steps to reproduce it
We have some global styles on heading elements (don't ask... legacy 😅)
This makes the different panels unreadable on the dark background
(screenshot doesn't do it justice for how it looks "live" for some reason, but it illustrates the point).
The h3 already has a class plugin-title-container-tanstack-query-0, so in theory you should be able to set some light color to it?
If I disable our rule, it inherits the color of its parent
But that's less specific then an h3 rule apparently.
Note that beyond the title in the drawer, none of our other global resets seems to affect the devtools 👍
Btw, the template has a small error:
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
N/A
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
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
Beginne damit, das Problem in TanStack Devtools v0.7.6 mit globalen Stilen für h1, h2 und h3 nachzustellen, wobei der Drawer-Titel und seine vorhandene Klasse plugin-title-container-tanstack-query-0 im Mittelpunkt stehen. Erledigt ist die Aufgabe, wenn die Überschriften der Devtools trotz der Überschriftenstile des Consumers auf dem dunklen Hintergrund lesbar bleiben; der gemeldete Template-Fehler wird ebenfalls zur Untersuchung vermerkt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- css, react, typescript
- Bereich
- devtools, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100