Skip to content

Remove the unused step separator from the NextSteps component - #3470

Merged
pwizla merged 2 commits into
mainfrom
repo/fix-next-steps-separator
Sep 11, 2026
Merged

Remove the unused step separator from the NextSteps component#3470
pwizla merged 2 commits into
mainfrom
repo/fix-next-steps-separator

Conversation

@pwizla

@pwizla pwizla commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

This PR removes the step separator from the <NextSteps> component, so the rendered result matches what docs.strapi.io shows today and an unlinked step stops rendering as a lone framed box.

.step carried a border-bottom that &:last-child was meant to drop on the last step only. A step that has a link is wrapped in its own <a class="stepLink">, which makes .step the only child there, so the selector matched on every linked step and removed every separator. The border therefore never rendered on the published pages, and the declaration was dead code. It did render in one case: an unlinked step sits directly in .steps, keeps its border, and bleeds past the content width because .step carries margin: 0 -24px. That is visible on the deployment guides of #3461, where the PM2 step has no link until #3465 adds the page it points to.

Making the separator render was tried first and rejected: the line spans the negative margins and cuts across the block. Removing the declaration keeps the current appearance, which is the intended one, and fixes the orphan box.

Direct preview link 👉 here

@pwizla pwizla self-assigned this Sep 11, 2026
@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
documentation Ready Ready Preview Sep 11, 2026 10:49am UTC

Request Review

@github-actions github-actions Bot added pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo internal PRs created by the Strapi core team labels Sep 11, 2026
@pwizla pwizla changed the title Fix the NextSteps separator, which never rendered between linked steps Remove the unused step separator from the NextSteps component Sep 11, 2026
@pwizla pwizla added this to the 7.2.0 milestone Sep 11, 2026
@pwizla
pwizla merged commit 7110df3 into main Sep 11, 2026
5 checks passed
@pwizla
pwizla deleted the repo/fix-next-steps-separator branch September 11, 2026 10:53
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant