Repository navigation
fix(admin): give list and card surfaces an explicit background - #958
Conversation
Card containers across the admin (content lists, content type editor, media library, comments, users, device auth) used `rounded-md/lg border` without any `bg-*` class. The body's `--color-kumo-elevated` (#f0f0f1) showed straight through, so cards visually merged with the page and internal section strips read as accidental shading rather than headers. - Add `bg-kumo-base` to every list/info card. - In `ContentTypeEditor`, the SYSTEM FIELDS wrapper used `bg-kumo-tint/30` on the whole section, tinting the rows. Move the tint to the header strip only and apply the same treatment to the CUSTOM FIELDS strip for visual consistency. - Fix `SortableTh` referring to a non-existent `text-kumo-fg` class, which silently rendered inactive sortable column labels in `text-kumo-subtle` (pale grey). Always use `text-kumo-default` and rely on the caret icon to signal active state.
🦋 Changeset detectedLatest commit: d88cc1b The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-perf-coordinator | d88cc1b | May 08 2026, 05:13 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-i18n | d88cc1b | May 08 2026, 05:13 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
docs | d88cc1b | May 08 2026, 05:15 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-demo-cache | d88cc1b | May 08 2026, 05:14 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-playground | d88cc1b | May 08 2026, 05:15 PM |
@emdash-cms/admin
@emdash-cms/auth
@emdash-cms/blocks
@emdash-cms/cloudflare
emdash
create-emdash
@emdash-cms/gutenberg-to-portable-text
@emdash-cms/x402
@emdash-cms/plugin-ai-moderation
@emdash-cms/plugin-atproto
@emdash-cms/plugin-audit-log
@emdash-cms/plugin-color
@emdash-cms/plugin-embeds
@emdash-cms/plugin-forms
@emdash-cms/plugin-webhook-notifier
commit: |
There was a problem hiding this comment.
Pull request overview
This PR fixes several admin UI surfaces (tables, lists, and info cards) that were rendering transparently against the page background by giving them an explicit bg-kumo-base background, improving visual separation and readability across multiple views in @emdash-cms/admin.
Changes:
- Add
bg-kumo-baseto list/table wrappers and info-card containers across users, content, media, comments, and device authorization views. - Adjust
ContentTypeEditorfield sections so the tint applies to the section header strips (System/Custom) rather than tinting the rows. - Fix content list sortable header text styling by removing reliance on the non-existent
text-kumo-fgclass and usingtext-kumo-defaultconsistently.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/admin/src/components/users/UserList.tsx | Adds explicit base background to the user table surface and skeleton. |
| packages/admin/src/components/users/UserDetail.tsx | Adds explicit base background to user detail info card surfaces and skeleton. |
| packages/admin/src/components/MediaLibrary.tsx | Adds explicit base background to media list table surface. |
| packages/admin/src/components/DeviceAuthorizePage.tsx | Adds explicit base background to the denied-state (and related) card surface. |
| packages/admin/src/components/ContentTypeList.tsx | Adds explicit base background to content type list table surface. |
| packages/admin/src/components/ContentTypeEditor.tsx | Adds explicit base background to editor cards; refines System/Custom field header strip tinting. |
| packages/admin/src/components/ContentList.tsx | Adds explicit base background to content list/trash tables; fixes sortable header text class usage. |
| packages/admin/src/components/comments/CommentInbox.tsx | Adds explicit base background to comment inbox table surface. |
| packages/admin/src/components/comments/CommentDetail.tsx | Adds explicit base background to comment detail card surfaces. |
| .changeset/admin-panel-surfaces.md | Adds a changeset documenting the admin surface/background and sortable header styling fixes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The list cards render `<table>` with a 1px outer border on the container, and each tbody `<tr>` had `border-b` for inter-row separators. The last row's bottom border stacked against the card's bottom border, producing a visibly thicker line at the bottom -- especially obvious on single-row lists like Pages with one entry. Replace per-row `border-b` with `divide-y divide-kumo-line` on the tbody. The divide utility only adds a top border to children after the first, so there's nothing at the bottom to clash with the card border. Same DOM for screen readers; cleaner CSS rule. Applied to: - ContentList (posts/pages tables, both 'all' and 'trash' tabs) - ContentTypeList - MediaLibrary list view - UserList (and its loading skeleton, which had the same div-based pattern) - CommentInbox - WordPressImport feature comparison (was already using the `last:border-0` workaround) - TaxonomyManager (recursive term rows)
Overlapping PRsThis PR modifies files that are also changed by other open PRs:
This may cause merge conflicts or duplicated work. A maintainer will coordinate. |
What does this PR do?
Card containers across the admin used
rounded-md/lg borderwithout anybg-*class. The body's--color-kumo-elevated(#f0f0f1) showed straight through, so cards visually merged with the page background and any internal section strips (bg-kumo-tint/30etc.) read as accidental shading rather than as headers.This affected the posts/pages list, content types list, content type editor (Settings + Fields cards), media library list view, comments inbox & detail, users list & detail, and the device authorization page.
Changes:
bg-kumo-baseto every list/info card surface.ContentTypeEditor, the SYSTEM FIELDS wrapper hadbg-kumo-tint/30on the whole section, which tinted the system field rows themselves. Move the tint to the header strip only and apply the same treatment to the CUSTOM FIELDS strip so they read as symmetric section headers (header tinted, rows not).SortableThreferencing a non-existenttext-kumo-fgclass, which silently rendered inactive sortable column labels intext-kumo-subtle(pale grey --#787c82). The labels are now alwaystext-kumo-defaultand the caret icon (CaretUpDown->CaretUp/CaretDown) signals active sort state.Closes #
Type of change
Checklist
pnpm typecheckpassespnpm lintpasses (warning count unchanged from main baseline -- 28 pre-existing)pnpm testpasses (admin: 861/861)pnpm formathas been runAI-generated code disclosure
Screenshots / test output
Before -- the table card has no surface; rows blend into the page bg:
After -- white card surface, symmetric section headers, readable column labels: