Skip to content

Move GridCard icon to an opaque 32px stamp on the tag row - #5159

Draft
Duncanma wants to merge 1 commit into
mainfrom
duncan/cookbook-icon-stamp
Draft

Move GridCard icon to an opaque 32px stamp on the tag row#5159
Duncanma wants to merge 1 commit into
mainfrom
duncan/cookbook-icon-stamp

Conversation

@Duncanma

Copy link
Copy Markdown
Contributor

Summary

Implements "Option D" from the AI Cookbook card icon review: the SDK/language icon grows from 22px to 32px, loses its header spot next to the title, and moves down to sit opaque on the same row as the tag pills — reading like a stamp rather than a header ornament.

  • Relocating out of the header avoids the icon competing with two-line titles for width/height.
  • Applied at the shared GridCard level (not a cookbook-only variant), so every consumer stays visually consistent: AI Cookbook (/ai, /ai/cookbook), IntegrationsGrid (/integrations + the 5 per-SDK /develop/*/integrations pages), GuidesGrid (/guides), and GridCardList (Code Exchange block on /ai).
  • No new props/variants — .cardFooter wraps the tag pills (which can still wrap to multiple lines) and the icon (flex-shrink: 0, pinned to the right), so layout holds up with zero tags, many tags, or no icon.

Test plan

  • Verified in-browser (light + dark theme, desktop + mobile width) on /ai, /ai/cookbook, /integrations, /guides
  • yarn build passes (also ran automatically via pre-commit hook)
  • CI visual-regression screenshots will flag diffs on the pages above — expected, needs baseline re-approval

🤖 Generated with Claude Code

Grows the SDK/language icon from 22px to 32px and relocates it out of
the card header (where it competed with title wrapping) down next to
the tags, so it reads as a stamp rather than a header ornament. Applies
uniformly to every GridCard consumer (AI Cookbook, IntegrationsGrid,
GuidesGrid, GridCardList) rather than a cookbook-only variant, per
design review of the four icon-treatment options in the mockup.
Copilot AI balanced review requested due to automatic review settings August 21, 2026 19:20
@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
temporal-documentation Ready Ready Preview Aug 21, 2026 7:21pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

This PR does not change any pages in /docs. If you make updates, links to the modified pages will appear here.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Moves shared GridCard SDK icons into a footer beside tags, improving title space across all card consumers.

Changes:

  • Relocates icons from the header to a conditional card footer.
  • Enlarges icons from 22px to 32px.
  • Preserves wrapping tags while pinning icons to the right.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/components/elements/GridCard/GridCard.tsx Adds footer markup for tags and icons.
src/components/elements/GridCard/GridCard.module.css Styles the footer layout and larger icon.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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