Skip to content

fix: header anchor-icon spacing + API reference header link#980

Open
Iamfle4ka wants to merge 1 commit into
mainfrom
fix/header-api-link-and-anchor-gap
Open

fix: header anchor-icon spacing + API reference header link#980
Iamfle4ka wants to merge 1 commit into
mainfrom
fix/header-api-link-and-anchor-gap

Conversation

@Iamfle4ka

Copy link
Copy Markdown
Collaborator

Two small header/UI fixes.

1. Heading anchor (chain) icon spacing

The chain icon next to h2/h3 headings was colliding with the last word of the heading. Widened Starlight's --sl-anchor-icon-gap (0.25em0.5em) on .sl-heading-wrapper so the icon sits clearly to the side. Uses Starlight's intended customization point, so the icon still wraps with the last word rather than dropping onto its own line.

2. API reference header link

Adds a link to api.keboola.com in the site header by overriding Starlight's SocialIcons component (the natural, view-transition-safe slot in the header's right-group — no JS injection needed). Styled as a refined, secondary </> API pill (.header-api-link) using existing design tokens, deliberately quieter than the KAI button so the two sit together without competing. Hover shifts border/icon/label to Keboola blue; dark mode handled via tokens.

Files

  • astro.config.mjs — register the SocialIcons override
  • src/components/SocialIcons.astro — new override rendering the API link + the default
  • src/styles/custom.css — anchor-gap fix + .header-api-link styling

Verify

  • npm run build is clean (254 pages).
  • Confirmed the link renders inside .right-group > .social-icons, and verified light/dark/hover in a production preview.

Note: like Starlight's social icons, the link lives in .right-group, which is hidden below ~50rem (desktop-only for now). Can add it to the mobile menu as a follow-up if wanted.

🤖 Generated with Claude Code

Two small UI fixes:

- Widen the heading anchor (chain) icon gap via Starlight's
  --sl-anchor-icon-gap (0.25em → 0.5em) so the icon sits clearly to the
  side of the heading instead of colliding with the last word.
- Add a header link to the Keboola API reference (api.keboola.com) by
  overriding Starlight's SocialIcons component. Styled as a refined,
  secondary pill so it sits next to the KAI button without competing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
connection-docs Ready Ready Preview, Comment Jun 22, 2026 12:43pm

Request Review

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