Skip to content

TanStackRouterDevtoolsPanel's style is not customizable #4670

@JamesHyot

Description

@JamesHyot

Which project does this relate to?

Router

Describe the bug

I have a TanStackRouterDevtoolsPanel that is hidden somewhere in my website, and I've customized the style for it to dock it somewhere. I was using this doc that says you can style it however you want : https://tanstack.com/router/latest/docs/framework/react/devtools#embedded-mode

Turns out the custom styling broke sometime along the way.
I'm working on a PR but I think that the style and className props are no longer passed down to the BaseTanStackRouterDevtoolsPanel.

Your Example Website or App

https://stackblitz.com/edit/tanstack-router-zcmc14gp?file=src%2Fmain.tsx

Steps to Reproduce the Bug or Issue

  1. Go to the repro URL
  2. TanStackRouterDevtoolsPanel has a style={{ display: 'none' }} prop
  3. The panel is still visible

Expected behavior

  1. Go to the repro URL
  2. TanStackRouterDevtoolsPanel has a style={{ display: 'none' }} prop
  3. The panel should be hidden

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.117.1 but issue is still there on latest version
  • OS: all
  • Browser: all
  • Browser Version: all
  • Bundler: all
  • Bundler Version: all

Additional context

No response

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