Repository navigation
Refine API column dividers and toolbar spacing - #4946
Conversation
Co-Authored-By: Codex <[email protected]>
| .api-column-handle:hover::after, | ||
| .api-column-handle:focus-visible::after, | ||
| .api-column-handle[data-dragging]::after { | ||
| background: var(--color-blue-elastic); | ||
| width: 2px; | ||
| background: var(--color-grey-60); |
There was a problem hiding this comment.
Severity: P3 (Low)
These divider and spacing changes never load with NAVIGATION_PREVIEW enabled. API pages in that layout still show the old solid grips and blue hover feedback, and the examples divider still disappears at rest. Port the treatment to the design-system stylesheet as well.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
There was a problem hiding this comment.
This PR targets API Explorer with FEATURE_ASSEMBLER_API_EXPLORER=true and FEATURE_NAVIGATION_PREVIEW=false, as requested during the design review. The navigation-preview stylesheet is intentionally outside this PR's scope, so I am leaving that treatment unchanged. The shared back-to-top icon applies to both layouts.
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4946/ |
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
…by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…eview by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ts (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…r review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
API reference pages use dotted resize grips and permanent neutral dividers. The floating toolbar and examples have consistent clearance from the dividers.
Affects: API reference, Site UI
Prompt summary: Make column resizing easier to discover without blue hover feedback or grips that resemble macOS scrollbars. Balance spacing around the navigation, article, and examples, and give the toolbar a clearer back-to-top icon. Keep the grips centred and make their background transparent except directly over the divider.
Why
The rounded resize grips resemble scrollbars, and the examples divider is invisible until hover. The floating toolbar extends into the gap beside the examples, leaving no clearance from the divider. The grip background also overlaps the navigation scrollbar when the thumb passes it.
What
Resize dividers
Six-dot grips sit centred over both draggable boundaries. Their backgrounds are transparent except for a strip that matches the divider's position and width. Neutral dividers grow from 1px to 2px on hover and while dragging, with a separate keyboard focus outline. Decorative grip overflow ignores pointer input so it cannot intercept drags over the sidebar scrollbar.
Column spacing
The toolbar and examples keep approximately 24px of clearance from the dividers at desktop widths. The stacked layout retains its existing spacing. Dragging and restoring saved widths preserve 360px of article content after accounting for column padding.
Back to top
The toolbar uses an upward arrow beneath a horizontal line. Its accessible label and delayed tooltip remain unchanged.
Verify
mise run site:test dotnet test --project tests/Elastic.ApiExplorer.Tests mise run journeys:test FEATURE_ASSEMBLER_API_EXPLORER=true FEATURE_NAVIGATION_PREVIEW=false mise run serveOn an API operation page, drag both dividers, use the arrow keys with a divider focused, and scroll until the floating toolbar appears. Check its clearance and back-to-top control.
All 976 frontend tests and the API Explorer rendering tests pass. Six regression cases cover padding at both drag limits and during saved-width restoration in the legacy and navigation-preview layouts. The final browser journey run passes with 107 successful and 9 skipped tests. Direct browser checks cover hover and drag thickness, keyboard focus, responsive visibility, and divider clearance at 1280px, 1600px, and 1920px. Browser checks also confirm usable article width, scrollbar interaction, and exact alignment of the narrow opaque strip with the divider.
The automated visual comparison cannot run because baseline preparation fails during the assembler build on
origin/main.Check on the preview