Repository navigation
feat(card): add quiet caption style - #2293
Merged
Merged
Conversation
Render the category header as a quiet sentence-case label: drop the uppercase transform, abbreviate the month, separate category and date with a margin instead of a bullet, and use the secondary body color for both. Other header styles are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Deploy Preview for gethinode-demo ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Make the category caption restyle opt-in through the new `main.cards.captionStyle` site setting. Its default keeps the original output. Setting it to `quiet` renders the `category` header as a sentence-case label: no uppercase transform, a medium date, a margin instead of a bullet, and the secondary body color for both parts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
🎉 This PR is included in version 3.47.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Summary
Adds an opt-in
quietstyle for thecategorycard header, set site-wide:defaultquietme-3)text-body-emphasistext-body-secondaryThe default is
default, so existing sites keep their current output. Other header styles (full,date,publication,tags) are unaffected in both modes. Cards with acolorstill inherit their color.This is a setting rather than an SCSS hook because CSS can't change the date format or remove the bullet from the markup.
Testing
pnpm test:templatespasses, including a newquiet-captionenvironment and atests/card-category.htmlcase covering both modes.mainwith the previous partial: 0 files differ.quietchecked on a downstream site in light and dark mode: the computed transform isnone, the gap is 16px, and the secondary color measures 9.65:1 (light) and 7.29:1 (dark) against the page.🤖 Generated with Claude Code