Skip to content

API docs: keep the method badge on the first line of a wrapped path - #4489

Merged
reakaleek merged 1 commit into
mainfrom
align-api-method-top-652fc538
Oct 16, 2026
Merged

reakaleek merged 1 commit into
mainfrom
align-api-method-top-652fc538

Conversation

@reakaleek

Copy link
Copy Markdown
Member

Why

  • A long API route wraps inside the path chip, and the HTTP method badge floats to the vertical middle of the wrapped lines.
  • The badge should stay level with the start of the path.

What

  • Pin the method badge to the top of the path chip.
  • Single-line routes look the same as before.

Notes

  • The top offsets on the path text and the "also GET" label are calculated from the badge and line heights. They are not measured in a browser yet.
  • Affects src/Elastic.Documentation.Site/Assets/api-docs.css only.

🤖 Generated with Claude Code

A long route wrapped inside the path chip and the method badge floated to the middle of it. The badge now stays level with the first line of the path.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@reakaleek
reakaleek requested a review from a team as a code owner October 16, 2026 11:22
@reakaleek
reakaleek requested a review from akira28 October 16, 2026 11:22
@github-actions

Copy link
Copy Markdown
Contributor

Docs preview (local build)

Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4489/

@reakaleek
reakaleek merged commit 5300721 into main Oct 16, 2026
37 checks passed
@reakaleek
reakaleek deleted the align-api-method-top-652fc538 branch October 16, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants