Skip to content

Global h1, h2 etc styles affect devtools stylesΒ #215

@SimenB

Description

@SimenB

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 πŸ˜…)

Image

This makes the different panels unreadable on the dark background

Image

(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

Image

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:

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions