Files
Danny White 0b85e0d9c8 fix(design-system): give source panel breathing room before prose (#51468)
## Problem

After the shadcn source row started rendering, body prose sat flush
under the source stack. The first MDX paragraph has no top margin
(`not-first:mt-6`), and `SourcePanel` had no bottom margin. Pages with
no Radix used to fall through to the separator’s spacing; once shadcn
showed, that gap disappeared.

## Solution

When any source row is present, `SourcePanel` adds `mb-6` (same as the
separator above). When none are present, it returns `null` so we do not
double the separator gap.

| Before | After |
| --- | --- |
| <img width="1650" height="716" alt="CleanShot 2026-10-09 at 14 14
31@2x"
src="https://github.com/user-attachments/assets/f1c6b7bd-ad08-4540-8b20-1951a1c3e49f"
/> | <img width="1646" height="770" alt="CleanShot 2026-10-09 at 14 15
35@2x"
src="https://github.com/user-attachments/assets/bd0f2971-25a2-4468-8164-ceeb60263bf1"
/> |

## Review instructions

1. Open a component with both Radix and shadcn (e.g. Alert), one with
only shadcn (e.g. Skeleton), one with only Radix if available, and one
with neither (e.g. Collapsible).
2. Confirm consistent space between the source rows (or the separator,
when there are none) and the first body paragraph.
2026-10-09 18:19:44 +11:00
..
2026-07-03 15:00:43 +10:00