Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

feat: right-click on nav logo opens Vue brand assets - #3482

Open
devsummar wants to merge 1 commit into
vuejs:mainfrom
devsummar:patch-1
Open

devsummar wants to merge 1 commit into
vuejs:mainfrom
devsummar:patch-1

Conversation

@devsummar

Copy link
Copy Markdown

Description of Problem

People often save the navbar logo directly instead of using the official assets and guidelines, because they're hard to find (#3406).

Proposed Solution

Right-clicking the nav logo now prevents the native context menu and navigates to the official brand assets (https://github.com/vuejs/art), like t3.gg and tailwindcss.com do. Because the logo is rendered by @vue/theme, this is done with a single client-only contextmenu listener registered in .vitepress/theme/index.ts (guarded by inBrowser, so SSR is unaffected). Left-click and keyboard navigation to home are unchanged; right-clicking elsewhere keeps the native menu.

Additional Information

There's currently no Brand Assets page on vuejs.org, so this points to the vuejs/art repo. If a page like /about/brand is preferred, only the BRAND_ASSETS_URL constant needs to change.

Testing

  • pnpm build succeeds
  • pnpm dev, then with Playwright/Chromium:
    • right-click logo → navigates to https://github.com/vuejs/art
    • left-click logo → navigates to /
    • right-click elsewhere on the page → native menu, no navigation

Closes #3406

AI assistance was used to help prepare this change; I've reviewed and tested it.

@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 5de195a
🔍 Latest deploy log https://app.netlify.com/projects/vuejs/deploys/6ad4bf645a797162be0e01a3
😎 Deploy Preview https://deploy-preview-3482--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch has not been deployed

No deployments
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.

Right-click menu on site logo should link to Brand Assets page

1 participant