Skip to content

fix(overlay): style inspector button differently when enabled#1069

Open
skirtles-code wants to merge 1 commit intovuejs:mainfrom
skirtles-code:open-in-editor-button
Open

fix(overlay): style inspector button differently when enabled#1069
skirtles-code wants to merge 1 commit intovuejs:mainfrom
skirtles-code:open-in-editor-button

Conversation

@skirtles-code
Copy link
Contributor

As suggested in #1067, this PR changes the styling of the Toggle Component Inspector button, so that it only shows in green when it is enabled. This is similar to how the Toggle Vue DevTools button is styled.

Most of the code to do this already existed, but there was some ambiguity about what it means for the Vue inspector to be 'enabled'. I've split this into two separate things: vueInspectorSupported and vueInspectorEnabled. The former signifies whether the button can be shown, whereas the latter indicates that the button has been clicked and the user is actively trying to select a component.

@netlify
Copy link

netlify bot commented Mar 20, 2026

Deploy Preview for vue-devtools-docs canceled.

Name Link
🔨 Latest commit 58a61c8
🔍 Latest deploy log https://app.netlify.com/projects/vue-devtools-docs/deploys/69bdc453a0ce0d0008ffcf73

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 20, 2026

Open in StackBlitz

@vue/devtools-applet

npm i https://pkg.pr.new/@vue/devtools-applet@1069

@vue/devtools-core

npm i https://pkg.pr.new/@vue/devtools-core@1069

@vue/devtools

npm i https://pkg.pr.new/@vue/devtools@1069

@vue/devtools-api

npm i https://pkg.pr.new/@vue/devtools-api@1069

@vue/devtools-kit

npm i https://pkg.pr.new/@vue/devtools-kit@1069

@vue/devtools-electron

npm i https://pkg.pr.new/@vue/devtools-electron@1069

@vue/devtools-shared

npm i https://pkg.pr.new/@vue/devtools-shared@1069

@vue/devtools-ui

npm i https://pkg.pr.new/@vue/devtools-ui@1069

vite-plugin-vue-devtools

npm i https://pkg.pr.new/vite-plugin-vue-devtools@1069

commit: 58a61c8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant