Skip to content

Refine API column dividers and toolbar spacing - #4946

Merged
reakaleek merged 12 commits into
mainfrom
improve-column-borders-bd59aa86
Nov 18, 2026
Merged

reakaleek merged 12 commits into
mainfrom
improve-column-borders-bd59aa86

Conversation

@reakaleek

@reakaleek reakaleek commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

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 serve

On 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

@reakaleek
reakaleek requested a review from a team as a code owner November 18, 2026 18:54
@reakaleek
reakaleek requested a review from akira28 November 18, 2026 18:54
@reakaleek reakaleek added the redesign Frontend visual or structural redesign label Nov 18, 2026
Comment on lines 4826 to +4829
.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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

Copy link
Copy Markdown
Contributor

reakaleek and others added 2 commits November 18, 2026 21:12
…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]>
@reakaleek
reakaleek merged commit f0ed037 into main Nov 18, 2026
44 checks passed
@reakaleek
reakaleek deleted the improve-column-borders-bd59aa86 branch November 18, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

redesign Frontend visual or structural redesign

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant