Skip to content

Wrap single-status API responses in one bordered content box - #3360

Merged
pwizla merged 2 commits into
mainfrom
repo/api-single-response-border-box
Jul 27, 2026
Merged

Wrap single-status API responses in one bordered content box#3360
pwizla merged 2 commits into
mainfrom
repo/api-single-response-border-box

Conversation

@pwizla

@pwizla pwizla commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

This PR gives single-status API response blocks (e.g. a lone 200 OK on the REST API reference page) the same bordered content box that multi-status responses already have, minus the status tabs. The status header and the code now share one outer border, the inner code block's own border and bottom margin are stripped so it blends into the box without a double border or double gap, and the copy button still copies only the code.

A lone 200 response rendered its status header and code without the content border used by multi-status responses. Draw a single bordered box around the header + code (matching the tabs-container border, minus the tab bar), strip the inner code block's own border and bottom margin so it blends into the box with no double border or double gap, and keep the header and JSON left-aligned. The copy button still copies only the code, not the status label.
@pwizla pwizla self-assigned this Jul 27, 2026
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview, Comment Jul 27, 2026 2:52pm

Request Review

@github-actions github-actions Bot added the internal PRs created by the Strapi core team label Jul 27, 2026
@github-actions github-actions Bot added pr: updated content PRs updating existing documentation content source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo labels Jul 27, 2026
@pwizla pwizla added this to the 7.1.0 milestone Jul 27, 2026
@pwizla pwizla added pr: chore and removed pr: updated content PRs updating existing documentation content labels Jul 27, 2026
@pwizla
pwizla merged commit 20fe199 into main Jul 27, 2026
5 of 6 checks passed
@pwizla
pwizla deleted the repo/api-single-response-border-box branch July 27, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal PRs created by the Strapi core team pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo

1 participant