Repository navigation
API Explorer: replace the operation section strip with a sticky row of section links - #4964
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4964/ Sample changed pages: |
…eview by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…w section keeps its anchor (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…w by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wrapped (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eadcrumbs (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s not blink Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e the intro (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Takes the new /docs/api/<key> page paths for the section toolbar journey. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…est (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…erflow test (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…er review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… links row (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Takes main's Floating UI placement for the Copy page menu and drops this branch's own menu flip (the toggle handler, its CSS class and its test). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…(per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…and all hidden (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… Copy page never wraps it (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… at each width (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
| const withCopy = trailLines(); | ||
| // Beside the trail when the button starts on the trail's last line, under it when it starts below. | ||
| const trail = [...document.querySelectorAll('#breadcrumbs li')].map(li => li.getBoundingClientRect()); | ||
| const beside = copy.getBoundingClientRect().top < Math.max(...trail.map(r => r.bottom)); |
There was a problem hiding this comment.
Severity: P3 (Low)
This check can count Copy page as “beside” the trail even if the button is entirely above it or sits to its left. The wide-screen cases can therefore pass while Copy page no longer ends the breadcrumb row. Check that the button overlaps the last breadcrumb line vertically and sits to its right, and check separately that it is below the trail when wrapped.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
| 900px: Copy page beside the trail True, trail wraps the same with and without it True | ||
| 1280px: Copy page beside the trail False, trail wraps the same with and without it True | ||
| 1680px: Copy page beside the trail True, trail wraps the same with and without it True |
There was a problem hiding this comment.
Severity: P3 (Low)
These fixed wrap expectations depend on the breadcrumb text from the live Cloud Connect spec. An upstream API title change can flip whether Copy page fits at 900px or 1280px and fail the journey even when the layout correctly adapts. Use fixed breadcrumb content for these cases, or derive the expected placement from the space the trail and button need.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
Why
application/json.What
Notes
🤖 Generated with Claude Code