Skip to content

feat(surfaces): COSS inset-highlight on floating surfaces - #27

Merged
Jettonn merged 1 commit into
mainfrom
feat/coss-surfaces
Jul 13, 2026
Merged

feat(surfaces): COSS inset-highlight on floating surfaces#27
Jettonn merged 1 commit into
mainfrom
feat/coss-surfaces

Conversation

@Jettonn

@Jettonn Jettonn commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Third batch of the COSS design match — the floating surface primitives.

What changed

Adds COSS's surface signature (from packages/ui popover/dialog/select/tooltip) — a before: pseudo-element inset top-highlight on:

  • PopoverContent, SelectContent, DialogContent, HoverCardContent
  • Tooltip also aligned to COSS: rounded-lgrounded-md, text-smtext-xs, + shadow-md

The highlight: before:absolute before:inset-0 before:shadow-[0_1px_rgba(0,0,0,0.04)] (light) / dark:before:shadow-[0_-1px_rgba(255,255,255,0.06)] — the subtle raised edge COSS puts on cards/menus.

Why this (and not the input wrapper)

Surfaces are <div>s, so ::before ports cleanly. COSS's input wrapper can't be ported without breaking the 21 icon demos that rely on <Input> being a single peer element with sibling-overlaid icons (peer-disabled:, class="peer ps-9") — documented as future work in MAINTAINING.md.

Verification

  • ✅ type-check · ✅ eslint · ✅ build
  • ✅ Visual: opened a dialog (highlight + rounded-xl, content unobstructed) and the selects page render correctly

…ltip/hovercard

Ports COSS's surface signature (packages/ui popover/dialog/select/tooltip):
a before-pseudo inset top-highlight on floating surfaces —
  before:absolute before:inset-0 before:shadow-[0_1px_rgba(0,0,0,0.04)]
  dark:before:shadow-[0_-1px_rgba(255,255,255,0.06)]
- Tooltip aligned to COSS: rounded-md + text-xs + shadow-md
- Surfaces are divs (unlike inputs), so ::before ports cleanly with no
  composition conflict

Verified: type-check, lint, build, and visual check (dialog open, selects page).
@Jettonn
Jettonn merged commit 9fcfce7 into main Jul 13, 2026
2 of 3 checks passed
@Jettonn
Jettonn deleted the feat/coss-surfaces branch July 13, 2026 15:36
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.

1 participant