Style inline badges from the badge macro - #406
Conversation
The shared badge inline macro (badge::[label=...]) emits .badge.badge--<label> spans, but only .status-badge (the page-level beta pill) had styling, so inline badges rendered as plain text. Style the three standard labels (beta, deprecated, enterprise) plus the large variant, with dark-theme colors mirroring the existing status-badge palette.
✅ Deploy Preview for docs-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdded Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Review: Style inline badges from the badge macroOverviewAdds CSS for the shared Correctness — verified against the macro and existing styles
Suggestions
RisksLow. Purely additive, scoped under Verdict: correct and convention-consistent — good to merge as-is; the cursor and fallback suggestions are small enough to fold in now if desired. 🤖 Generated with Claude Code |

The shared
badgeinline macro (badge::[label=...]) emits.badge.badge--<label>spans, but docs-ui only styles.status-badge(the page-level beta pill), so inline badges render as unstyled plain text. This became visible when redpanda-data/docs#1808 registered the macro in the streaming playbook and usedbadge::[label=beta]for section-level beta markers (per team convention: page-level beta uses:page-beta:, section-level uses the badge macro).Adds styling for the three standard labels (beta, deprecated, enterprise) plus the
size=largevariant, with dark-theme colors mirroring the existing status-badge palette. Graceful before/after: without this, badges read as plain "(beta)" text; with it, they render as small pills.🤖 Generated with Claude Code