Fix Open dropdown to show brand icons instead of generic sparkle#1368
Open
IEvangelist wants to merge 2 commits into
Open
Fix Open dropdown to show brand icons instead of generic sparkle#1368IEvangelist wants to merge 2 commits into
IEvangelist wants to merge 2 commits into
Conversation
The starlight-page-actions plugin renders a real brand icon for each built-in action but forces the generic 'AI' sparkle glyph on every custom action. Because the ChatGPT, Claude, and GitHub Copilot entries were configured as custom actions, all three showed the same sparkle. Switch to the plugin's built-in chatgpt/claude/githubCopilot actions (the hrefs and labels are identical) so ChatGPT and Claude get their brand marks, then restyle the built-in GitHub Copilot glyph to the site's GitHub octocat logo via a masked icon override in PageTitle.astro. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4379a930-b6fb-4a65-8c6f-57a63b780087
Contributor
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
IEvangelist
marked this pull request as ready for review
July 17, 2026 02:38
IEvangelist
enabled auto-merge (squash)
July 17, 2026 02:38
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Starlight “Open” dropdown actions so each entry renders the correct service brand icon (ChatGPT/Claude) and restyles the built-in GitHub Copilot icon to use the site’s GitHub octocat mark for consistency.
Changes:
- Switch
starlight-page-actionsconfiguration from custom actions to the plugin’s built-inchatgpt/claude/githubCopilotactions (restoring proper brand icons). - Add a scoped CSS override to replace the built-in GitHub Copilot icon artwork with an octocat mask in the dropdown.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/frontend/src/components/starlight/PageTitle.astro | Adds a CSS override to hide the plugin’s GitHub Copilot icon content and mask the icon box with the octocat SVG. |
| src/frontend/astro.config.mjs | Enables built-in starlight-page-actions entries for ChatGPT/Claude/GitHub Copilot instead of custom actions, allowing brand icons to render. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Every item in the page Open dropdown ("Open in GitHub Copilot", "Open in Claude", "Open in ChatGPT") rendered the same generic "AI" sparkle glyph instead of each service's brand icon.
Root cause
The
starlight-page-actionsplugin (v0.6.2) renders a real brand icon for each built-in action, but hardcodes the genericAIIconsparkle for every custom action. Our config defined ChatGPT, Claude, and GitHub Copilot ascustomactions, so all three fell back to the sparkle.Before
Fix
astro.config.mjs— Replace thecustomblock with the plugin's built-inchatgpt/claude/githubCopilotactions. The built-in hrefs and labels are identical to what we had, so behavior is unchanged, and ChatGPT and Claude now show their real brand marks.components/starlight/PageTitle.astro— The plugin's built-in "GitHub Copilot" glyph is the Copilot mascot rather than the GitHub logo. Override it with the site's existing GitHub octocat (Starlight'sgithubicon path) via a masked-icon rule scoped to[data-action-icon='githubCopilot'], matching the GitHub logo used elsewhere on the site.After
Validation
node --check astro.config.mjspasses.pnpm buildintentionally not run locally — please verify the rendered dropdown on CI/preview.