You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the Vue class attribute instead of React-style className in Vue devtools template containers.
The devtools.vue and devtoolsPanel.vue components were using className in their <template> blocks, which is a React-ism. Vue templates should use class for CSS class binding.
I have tested this code locally with pnpm run test:pr.
🚀 Release Impact
This change affects published code, and I have generated a changeset.
This change is docs/CI/dev-only (no release).
Summary by CodeRabbit
Bug Fixes
Fixed Vue DevTools components to use correct Vue template syntax for styling attributes, ensuring proper styling rendering across the DevTools interface.
Two Vue devtools component templates and their release changelog are updated: devtools.vue and devtoolsPanel.vue switch their container element attributes from className to Vue's standard class, with a patch-level Changesets entry documenting the fix.
Changes
Vue devtools className to class correction
Layer / File(s)
Summary
Template attribute fixes and changelog .changeset/fix-vue-devtools-class-attribute.md, packages/vue-query-devtools/src/devtools.vue, packages/vue-query-devtools/src/devtoolsPanel.vue
Both Vue devtools templates replace className with class on their container elements, preserving styling and refs. A Changesets entry documents the patch version bump and fix.
Estimated code review effort
🎯 1 (Trivial) | ⏱️ ~3 minutes
Possibly related PRs
TanStack/query#10635: Similar Vue devtools template attribute corrections from className to class in the same components with matching changeset updates.
Suggested labels
package: vue-query-devtools
Suggested reviewers
DamianOsipiuk
Poem
🐰 A template fix, so clean and bright, className → class, now Vue's just right!
Two devtools dance in harmony,
Attributes aligned, as they should be! ✨
The description fully matches the template structure with detailed changes explanation and all checklist items properly checked.
Docstring Coverage
✅ Passed
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check
✅ Passed
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
✅ Passed
Check skipped because no linked issues were found for this pull request.
Title check
✅ Passed
The pull request title 'fix: vue devtools class attribute' clearly and accurately summarizes the main change: replacing React-style className with Vue's class attribute in Vue devtools components.
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches🧪 Generate unit tests (beta)
Create PR with unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.
grzdev
changed the title
Fix/vue devtools class attribute
fix/vue devtools class attribute
May 31, 2026
grzdev
changed the title
fix/vue devtools class attribute
fix: vue devtools class attribute
May 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Changes
Use the Vue
classattribute instead of React-styleclassNamein Vue devtools template containers.The
devtools.vueanddevtoolsPanel.vuecomponents were usingclassNamein their<template>blocks, which is a React-ism. Vue templates should useclassfor CSS class binding.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit