Skip to content

docs: line up the hero badges on one height - #50

Merged
yesbert merged 1 commit into
mainfrom
docs/line-up-the-hero-badges
Sep 3, 2026
Merged

docs: line up the hero badges on one height#50
yesbert merged 1 commit into
mainfrom
docs/line-up-the-hero-badges

Conversation

@yesbert

@yesbert yesbert commented Sep 3, 2026

Copy link
Copy Markdown
Owner

What this changes

  • The .NET 10 badge sat a few pixels above the others. The three linked badges are flex items wrapping an inline image, so each carried the line box's descender space and rendered taller than the unwrapped one, which pushed their images down. .st-badges a is now inline-flex and the row is align-items: center, so a badge lines up whether or not it is a link.
  • Links the .NET 10 badge to dotnet.microsoft.com, as the README already does — it was the only one that was not a link.

How it was verified

  • Local gauntlet green (./scripts/local-gauntlet.sh)
  • docfx build --warningsAsErrors — 0 warnings, 0 errors
  • Rendered at 1:1 and measured against the badge row: all four now share one top edge

Copilot AI lite review requested due to automatic review settings September 3, 2026 16:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are small, documentation-only, and directly address the stated rendering/alignment issue without impacting runtime code.

Pull request overview

This PR adjusts the docs landing-page hero badge row so all badges align to the same visual height regardless of whether the badge image is wrapped in a link, and it makes the “.NET 10” badge clickable (matching the README behavior).

Changes:

  • Add align-items: center to the .st-badges flex row and set .st-badges a to inline-flex to eliminate baseline/descender height differences.
  • Wrap the “.NET 10” badge in a link to https://dotnet.microsoft.com/.
File summaries
File Description
docs/templates/stratara/public/main.css Align badge row items and ensure linked badges don’t render taller than unlinked ones.
docs/index.md Make the “.NET 10” badge a link, consistent with the other badges.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@yesbert
yesbert merged commit ee10c0f into main Sep 3, 2026
6 checks passed
@yesbert
yesbert deleted the docs/line-up-the-hero-badges branch September 3, 2026 16:34
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.

2 participants