You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test the API catalog layout in a browser with navigation preview on #5022
The API catalog page has no browser-level test of its responsive layout with NAVIGATION_PREVIEW on, so a lost column or subgrid rule in the preview stylesheet passes every test.
What is getting in your way
The catalog lays out its cards with rules that exist in two stylesheets: Assets/api-docs.css for the classic layout and Components/Pages/ApiReference/api-reference.css for the design-system bundle. The unit tests only check markup, such as the api-catalog-cell-tagged class. The visual suite covers the flag-off bundle only. The browser journeys that run with navigation-preview only run against deployed sites, because the local test host removes every FEATURE_* variable.
A browser check, with the flag on, of these properties of /api/:
Computed grid columns are one below 640px, two from 640px, and three from 1024px (the preview stylesheet uses 1101px for the three-column step).
The Orchestration cards have the same width as the Elasticsearch, Kibana and Logstash cards.
The three primary cards share one height, and each Serverless tag-on sits flush under its parent.
With only one Serverless API present, the next featured card starts a new row in the first column.
This needs either a way to start the local test host with a feature flag on, or a journey that runs against the demo site after it deploys.
Anything else
The checks above were run by hand with Playwright against docs-builder serve with FEATURE_NAVIGATION_PREVIEW=true, and against the classic layout, while working on the pull request.
A second review comment on elastic/docs-builder#5014 adds card sizing to this check. The full-size card is sized in the catalog stylesheets, so the unit tests, which count class names, pass even if that CSS is missing from either bundle.
A browser check with the flag on and off should also cover:
The full-size card has the padding, icon size, and type size the stylesheet sets (16px and 20px padding, a 24px icon, an 18px title, a 14px summary clamped to two lines), and it has the same size on both layouts.
The title and summary scale with the root font size, so the Serverless tag-on title stays smaller than its parent's title at a 20px root.
With summaries present, the cards of both groups have the same height.
Activity
reakaleek commentedon Nov 23, 2026
A second review comment on elastic/docs-builder#5014 adds card sizing to this check. The full-size card is sized in the catalog stylesheets, so the unit tests, which count class names, pass even if that CSS is missing from either bundle.
A browser check with the flag on and off should also cover: