Global `h1`, `h2` etc styles affect devtools styles
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 499
- 派生
- 100
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 4
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在使用全局 h1、h2 和 h3 样式的 TanStack Devtools v0.7.6 中复现该问题,重点关注抽屉标题及其现有的 plugin-title-container-tanstack-query-0 类。完成的标准是:尽管存在 consumer 的标题样式,devtools 的标题在深色背景上仍保持可读;报告的 template 错误也要记录下来以供调查。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- css, react, typescript
- 领域
- devtools, frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100